Hi,
Try with this.....
- First get the selected row index from the DataGrid
- Cast the DataGrid source to the DataTable
- Use the RemoveAt method to remove the row at the specified index.
Code Snippet:
//get the current row index
int rowIndex = DataGrid1.CurrentRowIndex;
//Removing the mapping from the datagrid
((DataTable)DataGrid1.DataSource).Rows.RemoveAt(rowIndex);
I hope this will solves your problem.....
thnkx,
Pesani