N
NotYetaNurd
hi i have a datagrid binded to a datatable.
i want to delete the selected record in the datagrid i did something like
this
CurrencyManager cm = (CurrencyManager)
Grid.BindingContext[CommonDataset.Tables[0]];
DataRowView row = (DataRowView) cm.Current;
row.Delete();
cm.EndCurrentEdit();
DataRow[]
dr=CommonDataset.Tables[0].Select(null,null,DataViewRowState.Deleted);
commonAdapter.Update(dr);
But somtimes the selected record is not deleted but some other record is
deleted ......
i want to delete the selected record in the datagrid i did something like
this
CurrencyManager cm = (CurrencyManager)
Grid.BindingContext[CommonDataset.Tables[0]];
DataRowView row = (DataRowView) cm.Current;
row.Delete();
cm.EndCurrentEdit();
DataRow[]
dr=CommonDataset.Tables[0].Select(null,null,DataViewRowState.Deleted);
commonAdapter.Update(dr);
But somtimes the selected record is not deleted but some other record is
deleted ......