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?

Re: DataGrid/DataView Display problem by Ben

Ben
Thu Jan 22 18:41:37 CST 2004

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" <amperryman111@hotmail.com> wrote in message
news:0B217FA4-2887-47C9-9C8A-BF7292B5E8C9@microsoft.com...
> 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?