The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
HAhaneefm Syncfusion Team April 30, 2007 03:29 PM UTC
Hi Klaus,
If you want to set row header names in the GridDataBoundGrid , you have to handle the PrepareViewStyleInfo Event of the grid. Please follow the code given below.
Is there a way to resize the row header so that text set in this way isn't scrunched up ? I tried using Model.ColWidths.ResizeToFit() as per an earlier forum posting, but it didn't work. Thanks for any info !
HAhaneefm Syncfusion Team April 24, 2008 10:04 PM UTC
Hi Rob,
PrepareviewStyleInfo event does not store any styleInfo properties in a grid. It just set the visual apperence of the grid. ResizeToFit method resizes a range of rows or columns to optimally fit stored contents of the specified range of cells in grid. It depends on the data stored in a grid. If the Grid doesn't have any data, ResizeToFit method doesn't make any changes in a Grid.Here is a code snippet.