Home - Forums-.NET - FlyGrid.Net (Windows Forms) - How do you programically set row size height

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 you programically set row size height
Link Posted: 13-Dec-2006 06:48
I have multi-line columns, like addresses in my flygrid. Address has atleast two lines.....I want to add code to increase the height of rows so that the user can see the whole address.......right now not all of the address can be seen in the cell because row height is too small.

Can someone tell me how to do this?

thx
Link Posted: 14-Dec-2006 04:55
You can use following ways:
1. Use Rows.SetNodeHeight method. This method can be used when Rows.RowSizing = RowSizing.Free
2. Use Rows.DefaultRowHeight property. This property changes height of all nodes/rows
3. If you need to fit height node to the size of text in the cells you can use AutoHeightMemoColumn for these purposes. Open the Grid Stylizing sample, click Use AutoHeight columns checkbox  to see the usage of AutoHeight columns.
Don't forget - Usage of Autoheight columns on the large amount data not recommended.