I am using a GGC to display data in a very similar way to an Outlook Inbox. I have a small problem when I refresh the data source, this is what is happening:
I display a list of tasks using the GridGroupingControl. This list of tasks is represented as an IList collection of objects which is set as the datasource on a binding source, the binding source is then set as the data source for the GGC. If I change one of the tasks, I always refresh my list from the database and then wish to rebind to the grid to display the changes. When I rebind the data is only displayed in the cell when I highlight the record that was changed and the changed task should now also exist in a different group.
It looks like the new data has not been put into all the internal data stores for the grid so when the CompareCategoryKey and GetGroupByCategoryKey methods are called they read the data from the record and this data is stale.
I have provided an example of this problem, to simulate it:
Run the application, check the Due Date of both records (one is Null and the other should be set)
Click the Refresh menu (this simulates updating the data source from the database and setting it onto the grid)
Check the Due Date - now you should see a new group has been created for None but one already exists and the data is displayed in the cell when you highlight the record that has changed but the text disappears when you click off the cell.
Studio version v5.1.0.51
.NET version 2.0
Cheers
James
GridGroup.zip