Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Two or more cells in one row with or without dropdown button

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

Two or more cells in one row with or without dropdown button
Link Posted: 02-Aug-2006 23:38
Hi,

I searched in this forum, but I can't really find the help for my problem and the NineRays.FlyGrid help could sometime be more significant.

I have a flygrid with several columns.
Now I need to have in one column for each cell of this column the possibility to split this cell into more than one cell/row and perhaps to fill these cells each with dropdown boxes (see columns 2):

. . . . Column1 . . . . . . . . Column2 . . . . . . . . Column3
_________________________________________________
[ . . . . . . . . . . . . .] . . . . . . . . . . . . . .] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]. 1. Cell  of row1 . ] . . . . . . . . . . . . . ]
[ . Cell of row 1 . ]______________] . . Cell of row 1 .]  
[ . . . . . . . . . . . . .] . . . . . . . . . . . . . .] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]. 2. Cell  of row1 . ] . . . . . . . . . . . . . ]
[_____________]______________]_____________]
[ . . . . . . . . . . . . .] . . . . . . . . . . . . . .] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]. 1. Cell  of row2 . ] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]______________] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .] . . . . . . . . . . . . . .] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]. 2. Cell  of row2 . ] . . . . . . . . . . . . . ]
[ . Cell of row 2 . ]______________] . . Cell of row 2 .]  
[ . . . . . . . . . . . . .] . . . . . . . . . . . . . .] . . . . . . . . . . . . . ]
[ . . . . . . . . . . . . .]. 3. Cell  of row2 . ] . . . . . . . . . . . . . ]
[_____________]______________]_____________]
[
[                                       ...

I guess it could work with nested grids but I do not really find a way to do this.

Can you help me?

Thank you!
Link Posted: 03-Aug-2006 04:22
Flexible row layouts will possible with FlyGrid.Net 2.0, current version doesn't allow cells merging.
Link Posted: 03-Aug-2006 04:27
Perhaps it is in a kind missunderstandable.

I don't want to merge rows.
I only want to fill more lines or cells in one cell of a row!

Is this not possible?

Thank you for your help!
Link Posted: 03-Aug-2006 09:00
If you meant custom drawing of cells - yes it is possible, just create column inherited from Column, override PaintTextInCell method and use info provided by arguments (CellDrawInfo arumnet provide full info for drawing in cell).
You can find a lot of examples in the samples and topics of this board to how to do this.
Link Posted: 03-Aug-2006 09:02
Also - you meant Wordwrap of text in the cell:
To turn on wordwrap mode of text in the column, use following code:
[c#]
column.FormatFlags &= ~StringFormatFlags.NoWrap;
Link Posted: 03-Aug-2006 18:57
What I was thinking about is - until there is a easier way with FlyGrid.Net 2.0 - to put something like e.g. a grid with one column and two rows into one cell of the main grid (column).

Looks like this:

There is a cell within a column and in this cell I put something in, which enables me to have perhaps two or more cells with e.g. dropdownboxes.

I do not need Wordwrap!

Thank you for your help ...

Best regards!
Link Posted: 03-Aug-2006 23:05
Looks like this:

There is a cell within a column and in this cell I put something in, which enables me to have perhaps two or more cells with e.g. dropdownboxes.

Seems that I've understood you correctly - this is a custom layouting, whne you place two columns into the single band and align these columns vertically - in this case cells of these columns in the single row will appear as you've described.
This will possible in FlyGrid.Net 2.0
Link Posted: 06-Aug-2006 19:04
Could you please tell me - when FlyGrid.NET 2.0 will be released?

Thank you!
Link Posted: 06-Aug-2006 21:43
We plan to release 2.0 to the mid of September.