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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binding Hashtable to GridDataBoundGrid

Thread ID:





51032 Oct 26,2006 12:28 PM UTC Oct 27,2006 08:40 AM UTC WinForms 1
Tags: GridControl
Allen Foster
Asked On October 26, 2006 12:28 PM UTC

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

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

Administrator [Syncfusion]
Replied On October 27, 2006 08:40 AM UTC

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,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon