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.

Binding Hashtable to GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

51032 Oct 26,2006 08:28 AM Oct 27,2006 04:40 AM Windows Forms 1
loading
Tags: GridControl
Allen Foster
Asked On October 26, 2006 08:28 AM

Can I bind (datasource=) a Hasttable to a databoundgrid?
If so how? I tried and got the following exception:
BadDataSourceForComplexBinding

btw - I tried both the Hashtable as well as Hashtable.Values

Administrator [Syncfusion]
Replied On October 27, 2006 04:40 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

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.

;