Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Combobox feature

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Combobox feature
Link Posted: 31-Oct-2005 04:04
Hello.
i have two combobox columns, when one column effects the data contains of the second in the same row.
for example in the first column i choose a brand of a car and the second will let me choose the models of the chosen brand. the models and the car brands are taken from the database (for every car there is a dataview with its models). So, every combobox in the same column can have different data values in it.
is it possible to do with the current features, and if not could you please add this ability ?
thanks for the help.
Link Posted: 31-Oct-2005 05:52
Yes it is possible to provide different dropdown lists that depend from some values in the row/node.
There are several ways to do it:
[list]
  • Create new column type and override GetValueList method that will dynamically provide with array of values.
  • [/*:m]
  • Use CustomDropdownColumn and provide custom dropdowns (see the CustomdropdownColumn in the Grid Stylizing sample)
  • [/*:m]
  • Create your column type base on LookupListColumn and filter values for dropdown in GetValueList procedure.
  • [/*:m][/list:u]