Net 6 flexgrid header

Posted by: devcode.ou on 2 October 2023, 7:36 pm EST

    • Post Options:
    • Link

    Posted 2 October 2023, 7:36 pm EST

    Hi,

    can you help me to change the header height in the flexgrid NET6

    i would like to set it shorter

    thank you

  • Posted 3 October 2023, 10:20 pm EST

    Hi Beniamino,

    FlexGrid’s RowHeaders and ColumnHEaders are basically grid panels. You can set the default height of all the rows of the flexgrid’s column headers using the following line of code:

    grid.DefaultColumnHeaderRowHeight = new GridLength(24);

    Similarly, the width of all the columns of the RowHeaders can be set using the DefaultRowHeaderColumnWidth property.

    In order to set the height of individual rows of the ColumnHeaders, you can refer to the following line of code:

    grid.ColumnHeaderRows[row_index].Height = new GridLength(24);

    In a similar way, RowHeaderColumn.Width property can be used to set the width of the columns of the RowHeader panel.

    Kindly refer to the attached sample showing the implementation of how to change the height of the column headers. See FlexgridHeaderNET6.zip

    Thanks & Regards,

    Aastha

  • Posted 3 October 2023, 10:40 pm EST

    Thank you,

    so i have to do it by code, not in xaml

    but its good anyway

  • Posted 11 October 2023, 6:27 am EST

    Hi, I tried your solution, it works (also in xaml)

    but i noticed that in cannot set a very small height for the column

    because i think ther’s some padding value set.

    It’s basically impossible go under 20 also with very small font.

    Do you have advice for set a minimum header?

  • Posted 12 October 2023, 2:20 pm EST

    Hi Beniamino,

    We are discussing this requirement with the developers. [Internal Tracking ID: C1XAML-35144]

    We will update you on this as soon as we hear back from them.

    Thanks & Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels