Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Microsoft > Hellp Finishing Sort using IBindingList with DataGrid - "Datagrid.zip" (0/1) 8.1 KBytes yEnc
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 26th June 15:07
david elliott
External User
 
Posts: 1
Default Hellp Finishing Sort using IBindingList with DataGrid - "Datagrid.zip" (0/1) 8.1 KBytes yEnc



I have a Collection that inherits from CollectionBase and Implements IBindingList which I have bound
to a DataGrid. So far everything works fine.

However, I am missing one piece to the IBindingList that I haven't figured out yet, how to determine
which DataGrid column header I clicked on so I can do a custom sort. Right now the sort is rotating
just to see that everything works.

There are two pieces of the IBindingList that I didn't know what to do with
PropertyDescriptor returned from IBindingList.SortProperty
ListChanged
What is the intent of these two items?

I have attached a small demo app that I have been working with. As a side note, I haven't been able
to get the DataGridTableStyle to work either.

The IBindingList implementation is in MyCollection.cs
The DataGridTableStyle implementation is in Form1.cs

Any thoughts are appreciated.

Dave
DavidElliott@BellSouth.net
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666