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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Simple example about creating/populating a Drop Down columns in Grid

Thread ID:





5036 Jun 16,2003 03:32 PM UTC Jun 16,2003 08:25 PM UTC WinForms 3
Tags: GridControl
Jose M. Gonzalez
Asked On June 16, 2003 03:32 PM UTC

I have a custom data source (IList) and I would like to have a Drop Down column with a list of predefined values in some of the columns. Once the DataSource property is updated, I would like to change some of the columns to a GridListControl style. Does anybody has a simple example related to this? TIA Jose

Administrator [Syncfusion]
Replied On June 16, 2003 04:34 PM UTC

Here is a sample. It has a GridDataBoundGrid with a column being a GirdListControl.

Jose M. Gonzalez
Replied On June 16, 2003 06:56 PM UTC

Thanks Clay for your promptly answer. Now I have another question: Is there any other way to populate the list of possible values in a GridListControl column (instead of using style.DataSource = dataSetX)? Since I'm using a pure domain model (no datasets)I need to have the combo value list populated with strong type objects and whenever the user selects any item, it will go directly to the corresponding property in the domain class. I was thinking about creating a GridListControl Factory (since I can have multiple grid intances opened at the same time) and link the Column directly to a given DropDownControl, so I can reuse the DropDown controls. Does that sound reasonable? Any suggestion? TIA Jose

Administrator [Syncfusion]
Replied On June 16, 2003 08:25 PM UTC

DataSource can be any object that supports either IList or IBindingList, so you should be able to use a strongly typed collection. The Syncfusion\Essential Suite\Grid\Samples\Quick Start\GridListControlSample sample uses an ArrayList of objects as DataSource for a GridListControl. Normal behavior for a grid is to share a single instance of each cell control. So, if you have 5000 GridListControl cells, there is only 1 GridListControl. So, I am not sure you need to try inplementing a GridListControl factory.


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

Live Chat Icon For mobile
Live Chat Icon