Hi,
I have a datagird having datatable as its datasource. It has a column
called "Check" which appears as checkbox in the grid. The user can
manually go and click on that field to check/uncheck it, and also the
user has the facility to check all the checkboxes with a click of a
button. To achieve this I am doing this..
On Button_Click
------------------------
For Each drDet As DataRow In dtMyData.Rows
' Validation performed
' If Validation is true then
drDet("Check") = True
' Else highlight the current row in the grid and exit the loop
Next
While doing this I want the user to see each row in the grid
HIGHLIGHTED (selected) as and when that row's "Check" column gets
checked. In the above code, I am not able to get the RowNumber so that
I can use DataGrid.Select(rownum) to select that row. The reason why I
want this feature is that at any time the above loop will break
depending upon a validation, and at that instance I want that
particular row to be selected.
Kindly advise.
Thanks,
Biju.