We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl Datasource

Thread ID:

Created:

Updated:

Platform:

Replies:

54460 Jan 9,2007 11:30 AM Jan 11,2007 02:08 AM Windows Forms 3
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On January 9, 2007 11:30 AM

The GridGroupingControl Datasource property is of type object but it throws an 'DataSourceComplexBinding' error whenever a Dictionary or Hashtable object is used. It seems so far that the Datasource can only take in objects implementing IList. Is there any way a Dictionary can be used directly as the Datasource?

Administrator [Syncfusion]
Replied On January 9, 2007 11:48 PM

Hi Yong,

Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=51032

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On January 10, 2007 07:00 AM

'Hi Allen,

The reason is that the Hashtable class does not implement the IList interface, which is required for data binding. In order to get around this, you should provide an implementation of IList on the Hashtable, which will return the DictionaryEntry structures for each item in the list. This will cause the key/value pairs to be shown in the data grid.

Best Regards,
Haneef
'
Unfortunately this does not seem to work. Can a working example be provided please?

Administrator [Syncfusion]
Replied On January 11, 2007 02:08 AM

Hi Yong,

Please try the attached sample and let me know if you are looking something different.
HashTableDatasource.zip

Best Regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;