Datagridview IMage cell
$20-25 USD
Opublikowano ponad 15 lat temu
$20-25 USD
Płatne przy odbiorze
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 [login to view URL] = [login to view URL]("[login to view URL]")
? ? ? ? ? ? ? [login to view URL](New DataColumn("Checkit", GetType(Boolean), Nothing))
? ? ? ? ? ? ? [login to view URL](New DataColumn("Origin", GetType(String), Nothing))
? ? ? ? ? ? ? [login to view URL](New DataColumn("theImag", GetType(String), Nothing))
? ? ? ? ? ? ? [login to view URL](New DataColumn("FileSelect", GetType(String), Nothing))
? ? ? ? ? ? ? [login to view URL](New DataColumn("Commandit", GetType(String), Nothing))
? ? ? ? ? ? ? [login to view URL](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 = [login to view URL]
? ? ? ? ? ? ? End If
? ? ? ? ? ? ? row("Origin") = "Certificate of origin"
? ? ? ? ? ? ? row("FileSelect") = "Filenameit"
? ? ? ? ? ? ? row("Commandit") = "Remove"
? ? ? ? ? ? ? If isnew Then
? ? ? ? ? ? ? ? ? ? ? [login to view URL](row)
? ? ? ? ? ? ? End If
? ? ? ? ? ? ? BindC(dtC)
? ? ? End Sub
? ? ? Public Sub BindC(ByVal dt As DataTable)
? ? ? ? ? ? ? [login to view URL] = dtC
? ? ? ? ? ? ? [login to view URL]()
? ? ? ? ? ? ? 'SetBrowseCol()
? ? ? End Sub
Identyfikator projektu: 3534031
Informację o projekcie
Zdalny projekt
Aktywny 15 lat temu
Szukasz sposobu na zarobienie pieniędzy?
Korzyści ze składania ofert na Freelancer.com
Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne