Home - Forums-.NET - FlyGrid.Net (Windows Forms) - How do I list value that can be selected from a combobox

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

How do I list value that can be selected from a combobox
Link Posted: 23-Nov-2005 21:19
Hello!

First I give you some basic information before I ask a specific question.
We must construct a rather advanced grid so I'm looking and evaluating this Flygrid product to see if this product fulfil our requirement.

One requirement for the grid is the following.
A column consist of several rows and we can just assume we have 3 rows for the first column which has column number 1. Here row 1 for this column 1 have type combobox with checkboxes and row 2 for column 1 has a type combobox only and row 3 for column 1 has a numeric type.

So as you must understand each cell for a column can have or has in most cases different types.
Valid typed for a cell is.
1. Combobox with checkboxes.
2. Just combobox
3. Numerinc
4. string

Another thing that you must understand is the following.
In our database we have different raw material codes that can be changed during runtime. The raw material codes is of type string.
The number of raw material codes can be any number normally somewhere between 5-30. Because the rawmaterial codes can be changed during runtime we can't set these rawmaterial codes in an enum statically. Instead we intend to read all the valid rawmaterial codes into a .NET ArrayList collection.

Now to my question: Assume we have a column consisting of different types for each cell and one cell in this column must be able to display the list of the raw material codes in the collection in a way that the user can select one of these. So the type of the cell would be a combobox.

So don't suggest using enum because the rawmaterial codes can be changed during runtime and don't suggest using a column that has the same type because most of the types each cell for one column has different types.

So is it really possible in some way to display a collection of values by using a combobox so the user can select one of the rawmaterial codes.

Have you any suggstion if it's possible to solve our problem in any way when still satisfying our requirement.


//Tony
Link Posted: 24-Nov-2005 05:18
If you saw latest sample, you can see that column can provide Column.EditorStyle property value, list of values (Column.GetValueList) dynamically, depending on data in the cell and any Windows.Forms.control as dropdown.
You can create your own column and override these property and method  to provide certain editor and list for certain value in the cell.