I need to iterate through the grid's rows and determine the boolean value for the checkbox column. This operation occurs when the user clicks on a button outside of the grid.
My attempts thus far have not returned 'true' on any rows that have the checkbox checked.
1.
For
x
As
Integer
= 0
To
dgvMain.RowCount - 1
2.
3.
If
DirectCast
((dgvMain.Rows(x).Cells(
"colTag"
)).ColumnInfo, Telerik.WinControls.UI.GridViewCheckBoxColumn).Checked =
True
Then
4.
_mvTaggedItems &= dgvMain.Rows(x).Cells(
"colItem"
).Value & DataBASIC.VM
5.
End
If
6.
Next