Datagridview IMage cell

Cancelled Posted Jan 11, 2009 Paid on delivery
Cancelled Paid on delivery

I have a datagridview control in VB.Net VS 2008. I have one image column. I want an image to appear on row 1 and row 3 but not on row 2. So how do I make the cell on row 2 blank? I need this right away.

?

Here is the code for the datagrdiview.

? ? ? Dim dtC As DataTable

? ? ? Private Function InitCustomsTable() As DataTable

? ? ? ? ? ? ? Dim dt As New DataTable()

? ? ? ? ? ? ? Dim chkBox As [url removed, login to view] = [url removed, login to view]("[url removed, login to view]")

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("Checkit", GetType(Boolean), Nothing))

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("Origin", GetType(String), Nothing))

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("theImag", GetType(String), Nothing))

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("FileSelect", GetType(String), Nothing))

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("Commandit", GetType(String), Nothing))

? ? ? ? ? ? ? [url removed, login to view](New DataColumn("FileSelectPath", GetType(String), Nothing))

? ? ? ? ? ? ? Return dt

? ? ? End Function

? ? ? Sub AddCRow1()

? ? ? ? ? ? ? Dim row As DataRow = Nothing

? ? ? ? ? ? ? Dim isnew As Boolean = False

? ? ? ? ? ? ? If row Is Nothing Then

? ? ? ? ? ? ? ? ? ? ? isnew = True

? ? ? ? ? ? ? ? ? ? ? row = [url removed, login to view]

? ? ? ? ? ? ? End If

? ? ? ? ? ? ? row("Origin") = "Certificate of origin"

? ? ? ? ? ? ? row("FileSelect") = "Filenameit"

? ? ? ? ? ? ? row("Commandit") = "Remove"

? ? ? ? ? ? ? If isnew Then

? ? ? ? ? ? ? ? ? ? ? [url removed, login to view](row)

? ? ? ? ? ? ? End If

? ? ? ? ? ? ? BindC(dtC)

? ? ? End Sub

? ? ? Public Sub BindC(ByVal dt As DataTable)

? ? ? ? ? ? ? [url removed, login to view] = dtC

? ? ? ? ? ? ? [url removed, login to view]()

? ? ? ? ? ? ? 'SetBrowseCol()

? ? ? End Sub

.NET Engineering Microsoft MySQL PHP Project Management Software Architecture Software Testing Visual Basic Windows Desktop

Project ID: #3534031

About the project

Remote project Active Jan 11, 2009