Using vb.net in Visual Studio 2003
I have a datagrid bound to a datasource in which I also add and delete rows and sort columns. I want to be able to select multiple rows in the datagrid and then perform an action on all selected rows (i.e. updates & deletions).
I am able to correlate datagrid row to datasource row when sorting by referencing the default view, but this fails when I add or delete rows.
I know I can use the currencymanager.position to reference the current row (as http://support.microsoft.com/kb/817247
) but this only gives the current row, not selected rows.
I think I could just save & accept changes before I undertake any actions to process additions & deletions & resynch the datagrid & datasource view but that seems inefficient.
Is there a quick way to reference a datagrid.isSelected row with the corresponding row in the dataset or link the currencymanager.position to the datagrid row to check if selected?