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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

5036 Jun 16,2003 11:32 AM Jun 16,2003 04:25 PM Windows Forms 3
loading
Tags: GridControl
Jose M. Gonzalez
Asked On June 16, 2003 11:32 AM

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 12:34 PM

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

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

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 04:25 PM

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.

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.

;