Hello Group,
I've problem with remove row in table.
I've DataTable myTable and display row this table i DataGrid (myGrid).
DataView myView = new DataView();
myView.Table=my Table;
myGrid.DataSour ce=myView;
Rows in myGrid are sorted.
I've too button [Remove]
My question:
How write OnClik function for button?
How remove selected row (selected in myGrid) from myTable?
myTable.Rows.Re moveAt(myGrid.C urrendRowIndex) not work - index in myGrid
and in myTable after sorted is not equal.
Thx
PawelR
I've problem with remove row in table.
I've DataTable myTable and display row this table i DataGrid (myGrid).
DataView myView = new DataView();
myView.Table=my Table;
myGrid.DataSour ce=myView;
Rows in myGrid are sorted.
I've too button [Remove]
My question:
How write OnClik function for button?
How remove selected row (selected in myGrid) from myTable?
myTable.Rows.Re moveAt(myGrid.C urrendRowIndex) not work - index in myGrid
and in myTable after sorted is not equal.
Thx
PawelR
Comment