Display deleted rows in datagrid

A

Ando

Hello,
I'm trying to make the System.Windows.Forms.DataGrid to display all
rows from a DataTable (even deleted ones). I'm using the following code
snippet:

dataGrid.SetDataBinding(myDataSource, myDataMember);
DataView dataView =(DataView)( (CurrencyManager)
dataGrid.BindingContext[myDataSource, myDataMember]).List;
dataView.RowStateFilter |= DataViewRowState.Deleted;

The code works as I a expected (I mean it keeps deleted records in the
datagrid), but it always remove the last row (exactly like the bug
described here
http://www.dotnet247.com/247reference/msgs/29/145143.aspx ). When i
click the column header, all deleted rows reappear, and everything
looks fine. I'm using .NET Framework 1.1 with Sp1.
I'm wondering if this is really a bug, or am I just missing something?
Is there another way of keeping deleted rows visible in DataGrid?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top