DataGrid/DataView Display problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a dataset table. I have filtered it and created a datview which I use as the datasource to a datagrid. That all works just fine. When I edit cells in the datagrid, then update the dataset table, the datagrid displays both the original row and the modified row. I only want to see the modified row. I have tried playing around with the DataViewRowState property. When I set it to ModifiedCurrent, no row is displayed. What am I doing wrong?
 
Amperr,

Have you tried calling the "AcceptChanges()" method on the dataset? This
might do the trick if I recall correctly.

Ben S. Stahlhood II


Amperr said:
I have a dataset table. I have filtered it and created a datview which I
use as the datasource to a datagrid. That all works just fine. When I edit
cells in the datagrid, then update the dataset table, the datagrid displays
both the original row and the modified row. I only want to see the modified
row. I have tried playing around with the DataViewRowState property. When I
set it to ModifiedCurrent, no row is displayed. What am I doing wrong?
 
Back
Top