-
ItemDataBound
Hi,
I am trying to set the visibility of the checkbox in each row of the grid.
Do you see anything wrong in theis code which I am using in the ItemDataBound event?
Thanks
For Each oItem In grdSearch.Items
If oItem.ItemType = ListItemType.AlternatingItem Or oItem.ItemType = ListItemType.Item Then
'Search the file id here
strFileIDCurrent = e.Item.Cells(3).Text()
If strFileIDCurrent = mstrOldFileId Then
CType(oItem.Cells(0).Controls(0), CheckBox).Visible = False
End If
mstrOldFileId = strFileIDCurrent
End If
intRow += 1
Next
-
Re: ItemDataBound
If strFileIDCurrent = mstrOldFileId Then
CType(oItem.Cells(0).Controls(1), CheckBox).Visible = False
End If