Making DropdownGrid example behave like GDBGwithDropGrids

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

3 Replies

AD Administrator Syncfusion Team 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.


JT James Tran 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.


JT James Tran 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.

Loader.
Up arrow icon