I posted earlier about the conditional change of colors for rows but specifically the issue is the values are coming up as a html space.
The value of the data-bound cells are Boolean so how do i get the value on databind when they are essentially now checkboxes?
really stuck here, any help would be appreciated.
| If (TypeOf (e.Item) Is GridDataItem) Then |
| 'Get the instance of the right type |
| Dim dataBoundItem As GridDataItem = e.Item |
| 'how do i get the value of the Boolean databound column??? |
| 'this does not work - it only produces a string of " " |
| if dataBoundItem("Ready").Text = x then |
| end if |
| End If |
UPDATE: figured it out. for those looking for a solution.
| If (TypeOf (e.Item) Is GridDataItem) Then |
| 'Get the instance of the right type |
| Dim dataBoundItem As GridDataItem = DirectCast(e.Item, GridDataItem) |
| Dim cbPause As CheckBox = dataBoundItem("Pause").Controls.Item(0) |
| 'get val of check box |
| end if |