What you see in the DataGrid is a representation of the DefaultView of your table. The index of the DataGrid row corresponds directly to the index of the bound DataRowView in the table's DefaultView.Note also that the DataTable itself has events, so you can handle the RowDeleting and RowDeleted events of your DataTable.vb Code:
Dim rowIndex As Integer = myDataGrid.CurrentRowIndex Dim boundRow As DataRowView = myDataTable.DefaultView(rowIndex) Dim actualRow As DataRow = boundRow.Row




Reply With Quote