Chris and Ruslan,
Additionally, you can change the data by modifying the DataRowView that
is returned from the indexer on the DataView. The view is nothing more than
a way of viewing the underlying data, and you should be able to set the
values on the view like you would a table (as the view points to the
underlying table/row ultimately).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Hi,
The myDataView.Sort = "field1" causes the DataView to present the data
sorted by 'field1' presumably the data in the DataTable is either unsorted
or it is sorted on a different field.
Hope this helps
Chris Taylor
"Ruslan" <ru*********@hotmail.com> wrote in message
news:uY**************@tk2msftngp13.phx.gbl... Hello,
I have:
BindingManagerBase bm;
DataTable myTable;
DataView myDataView
DataGrid myGrid;
myDataView = myTable["tab"] // data in table exist
myDataView.Sort = "field1";
myGrid.DataSource = myDataView;
bm = this.BindingContext[myDataView];
the data order in DataView and DataTable is different.
How can a read (change) the data in table using DataView?
Any idea?
Thanks a lot,
Ruslan