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.
I created a derived datagrid control. in the "new" constuctor, i set the tablestyle.preferredrowheight to what i want.
I also overrided the "on resize" event to automatically adjust column width. but i can't seem to find a way to change the rows height once the grid has been created.
Does anyone know how to programmatically change a single/all rows height/s after the datagrid has already been greated?
ADAdministrator Syncfusion Team December 19, 2002 09:24 AM UTC
try this:
'works only to all rows
'where:
'Me.DataGrid1 is my datagrid
'Me.DataGridTableStyle1 is the tablestyle associated with the datagrid
Me.DataGridTableStyle1.PreferredRowHeight = 20
Me.DataGrid1.TableStyles.Clear()
Me.DataGrid1.TableStyles.Add(Me.DataGridTableStyle1)
> I created a derived datagrid control. in the "new" constuctor, i set the tablestyle.preferredrowheight to what i want.
>
> I also overrided the "on resize" event to automatically adjust column width. but i can't seem to find a way to change the rows height once the grid has been created.
>
> Does anyone know how to programmatically change a single/all rows height/s after the datagrid has already been greated?
>
>