How to get the index selected in the datagrid table which contains the employees table information ,on getting the index who to update the record at that index in to other table
//---------then you can use bindingManagerBase.Position to get row from
DataTable. Better to get row form DataView, because rows in DataGrid
can be sorted, filtered and etc...
void SomeMethod()
{
dataTable1.DefaultView[bindingManagerBase.Position]["column1"] = 6;
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.