Posted on 2005-04-06
In VB.NET 2003, how can I:
1. Get how many rows are selected in a DataGrid (something like DataGrid1.SelectedRowsCount)
2. Loop through the table, row by row, and find out for each row if it is selected or not.
3. Loop through the table, row by row, and get the actual value for specific columns of each row
Basically, I need to check of there is at least one row selected in the DataGrid. If so, I have to loop through the DataGrid rows collection, and for each selected row, get the values for some of the columns.