Hello,
Have a collection, for example
List<test> MyList</test>
And bind it to
DataGrid
If you sort the columns, the List will stay unsorted.
Textbox.text = MyList[0].ToString();
If you want to modify the DataGrid, (for example Deleting a record):
(
you must modify
MyList
instead of it. Then ReBind it to the DataGrid and apply the possible sorting to
DataGrid
)
OR
(
Implement the
INotifyPropertyChanged
. Look at this:
INotifyPropertyChanged Interface
)