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

Making DropdownGrid example behave like GDBGwithDropGrids

Thread ID:

Created:

Updated:

Platform:

Replies:

14468 May 27,2004 12:28 PM UTC May 27,2004 06:16 PM UTC WinForms 3
loading
Tags: GridControl
James Tran
Asked On May 27, 2004 12:28 PM UTC

The GDBGwithDropGrids example (see attachment) has a drop down grid that behaves like a combobox (click on selection, dropdown closes automatically, parent cell shows the selection). What would I need to do to make the DropdownGrid example have this behavior? The GDBGwithDropGrids example is too complex for me to understand. GDBGwithDropGrids_9344.zip

Administrator [Syncfusion]
Replied On May 27, 2004 12:43 PM UTC

I think the cell you are talking about in the GDBGwithDropDowns is a GridListControl cell type. So, to get this cell control in any grid, you would set: style.CellType = "GridListControl"; style.DataSource = someDatatable; style.DisplayMember = somePropertyInTheDataTable; style.ValueMember = someOtherPropertyInThedataTable; You can see samples of the GridListControl dropdown cell in the grid\samples\celltypes\ComboBoxes folder.

James Tran
Replied On May 27, 2004 05:38 PM UTC

With the GridListControl, can you give an example that does not use datasource and has more than 2 columns? >I think the cell you are talking about in the GDBGwithDropDowns is a GridListControl cell type. So, to get this cell control in any grid, you would set: > > >style.CellType = "GridListControl"; >style.DataSource = someDatatable; >style.DisplayMember = somePropertyInTheDataTable; >style.ValueMember = someOtherPropertyInThedataTable; > > >You can see samples of the GridListControl dropdown cell in the grid\samples\celltypes\ComboBoxes folder.

James Tran
Replied On May 27, 2004 06:16 PM UTC

I got it working now. I thought you had to specify which columns in the datatable to display but it just displays everything. >With the GridListControl, can you give an example that does not use datasource and has more than 2 columns? > >>I think the cell you are talking about in the GDBGwithDropDowns is a GridListControl cell type. So, to get this cell control in any grid, you would set: >> >> >>style.CellType = "GridListControl"; >>style.DataSource = someDatatable; >>style.DisplayMember = somePropertyInTheDataTable; >>style.ValueMember = someOtherPropertyInThedataTable; >> >> >>You can see samples of the GridListControl dropdown cell in the grid\samples\celltypes\ComboBoxes folder.

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;