Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / UltraGrid: How do I resize the Row Header?

UltraGrid: How do I resize the Row Header?

New Discussion
Glenn Andrews
Glenn Andrews asked on Aug 10, 2016 10:24 PM

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

Sign In to post a reply

Replies

  • 0
    Privacy Privacy
    Privacy Privacy answered on Aug 10, 2016 10:47 AM

    Hi,

    for height you can try:

    grid.DisplayLayout.Bands[0].ColHeaderLines = 2;

  • 0
    Glenn Andrews
    Glenn Andrews answered on Aug 10, 2016 2:03 PM

    it worked, Thank you

    • 0
      Sahaja Kokkalagadda
      Sahaja Kokkalagadda answered on Aug 10, 2016 10:24 PM

      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:

      https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.rowlayoutcolumninfo

      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:

      https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.rowlayoutcolumninfo~labelposition

      https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.labelposition

      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 Kokkalagadda
      Associate Software Developer

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Glenn Andrews
Favorites
0
Replies
3
Created On
Aug 10, 2016
Last Post
9 years, 7 months ago

Suggested Discussions

Created by

Created on

Aug 10, 2016 10:24 PM

Last activity on

Feb 23, 2026 5:46 PM