BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Moises,
Thank you for your interest in Syncfusion products.
To set column width to fill the total width of grid, You can use the AllowProportionalColumnSizing property.
Please refer to the Kb to set column width as client size.
https://www.syncfusion.com/kb/4308/how-to-resize-the-column-width-and-row-height-to-client-size
Code Snippet
this.gridGroupingControl1.AllowProportionalColumnSizing = true;
For more information please refer the below link,
Regards,
Piruthiviraj
Hi Moises,
Thank you for your update.
Query |
Solution |
Customizing column widths in GridGroupingControl |
Suggestion1 If you want to customize the column width of the grid, you can QueryColWidth event.
Code snippet this.gridGroupingControl1.TableModel.QueryColWidth += TableModel_QueryColWidth; void TableModel_QueryColWidth(object sender, GridRowColSizeEventArgs e) { //your customization; } |
Suggestion2 To resize the range of columns or rows to fit the contents of specified range of cells , you can use ResizeToFit method of ColWidths and RowHeights respectively. Please make use below code.
Code snippet this.gridGroupingControl1.TableModel.ColWidths.ResizeToFit(GridRangeInfo.Cells(4,5,6,8));
KB |
Regards,
Piruthiviraj.