Posted 9 April 2021, 2:01 am EST
Hi,
i tried to modify the ColumnHeaders.Height
but the “real dimension” of the header does not change,
same problem with the RowHeaders.Width
Forums Home / ComponentOne / WPF Edition
Posted by: kisar on 9 April 2021, 2:01 am EST
Posted 9 April 2021, 2:01 am EST
Hi,
i tried to modify the ColumnHeaders.Height
but the “real dimension” of the header does not change,
same problem with the RowHeaders.Width
Posted 9 April 2021, 2:02 am EST - Updated 3 October 2022, 11:41 pm EST
Posted 11 April 2021, 8:47 pm EST
Hi Kisar,
Thank you for sharing the snapshot.
As I can observe, you are setting the Height/Width of the GridPanel representing Row/Column Headers. However, you need to set the Height/Width property of the Columns/Rows present in Headers as follows:
flexGrid.ColumnHeaders.Rows[0].Height = 40; // column header height
flexGrid.RowHeaders.Columns[0].Width = new GridLength(40); // row header width
Best Regards,
Kartik