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 a databoundgrid with resizetofit = false because of having a column which is extended to the greatest width to fill out the client area of the grid. Now I need some cells in a column to be as large as the text which is in it (AllowSize and WrapText = true). eg.
in a cell is a value of texttype -> resize
in a cell is a value of datetype -> don't resize
Have any idea how to do that?
Peter
ADAdministrator Syncfusion Team April 4, 2003 04:00 PM UTC
After one of your datecolumns changes (maybe catch it in CurrentCellConfirmChanges), try explicitly calling grid.Model.ColWidths.ResizeToFit passing in a range containing your cell. The autosize style property only works as text is being typed into a TextBox cell. It does not work for a MonthCalendar cell.