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 have 5 columns in a grid (databound).
I want the first column (column 1)'s width set automatically...which it is.
The remaining columns I want to fill the grid space evenly. So this is what I do:
private void Model_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
if (e.Index>1)
{
int cSize=0, leftPart =0;
cSize = GridControl1.ClientRectangle.Width;
leftPart = gridControl1.Model.ColWidths[0] + gridControl1.Model.ColWidths[1];
e.Size = (cSize - leftPart) / 4;
e.Handled =true;
}
}
This works great UNTIL I resize the grid (its Anchored to the form and resizes automatically).
When I do, attached is a picture of the results (PDF)
Thanks
Eric