Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1180
winGrid and ImageList
posted

I have a Wingrider and an imagelist. I would like to place an image in a cell depending on a criterion. See the code. But I can not, can someone help me;

Dim i as integer

Dim dt As New DataTable("dtTable")
dt.Columns.Add("Imagem")
dt.Columns.Add("Number")

For I=1 to 50

Dim row As DataRow = dt.NewRow()
if i Mod 2 = 0 then

row(0) = "Image from imageList"

else

row(0) = "Other Image from imageList"

end if
row(1) = i
dt.Rows.Add(row)

Next

appGrid.DataSource = dt