Sadly, the Header.Height is read only.
What I'm trying to accomplish is the following:
2x header height
Cols 1-2 VAligned at the bottom
Cols 3-8 VAligned Centered
In code we are placing a custom control over the text area of the Col1 & Col2. Using the DataGridView this was possible, but now with the UltraGrid we are having problems trying to adjust the Row Header height.
Please advise
Hi Glenn,
Alternatively, you can also set the column header height using RowLayoutColumnInfo object. Please refer to the following link on how to set minimum and preferred sizes for column headers and for the cells associated with those columns:
http://help.infragistics.com/doc/WinForms/2016.1/CLR4.0/?page=Infragistics4.Win.UltraWinGrid.v16.1~Infragistics.Win.UltraWinGrid.RowLayoutColumnInfo.html
You can set LabelPosition to specify if and where the column header should be shown. Please refer to the below links to read more about LabelPosition:
http://help.infragistics.com/doc/WinForms/2016.1/CLR4.0/?page=Infragistics4.Win.UltraWinGrid.v16.1~Infragistics.Win.UltraWinGrid.LabelPosition.html
http://help.infragistics.com/doc/WinForms/2016.1/CLR4.0/?page=Infragistics4.Win.UltraWinGrid.v16.1~Infragistics.Win.UltraWinGrid.RowLayoutColumnInfo~LabelPosition.html
To align the header text you can use the HeaderAppearance.TextVAlign property.
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
it worked, Thank you
Hi,
for height you can try:
grid.DisplayLayout.Bands[0].ColHeaderLines = 2;