I am calling this.OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
Even the sorting is working as expected. The problem occurs when
mModelTable.BeginLoadData();
mModelTable.Clear();
mDataAdapter.Fill( mModelTable );
After this the view gets changed & the container which holds the index of the data in the column becomes invalid so I need to resort this array again. Even I somehow took care of these situation. There are couple of other situations where indirectly view gets changed & since I am not able to track them, the container''s indexes gets invalid.
I am just attaching the 2 files
Referencedataproxy.cs where the IBindingList is implemented and Rowcomparer.cs where I have implemented IComparer interface. I hope you will get some clue out of it.
files1.zip