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.
Hi
Iam using GridDataBoundGrid. The cell height of the GridDataBoundGrid is not resizing when multiline text is enterd in richtext of the cell..Is it a bug or is there any way to rectify it.
AutoSize property is set to true and WordWrap property is also set to true. still the cell height is not incrementing its height.
ADAdministrator Syncfusion Team May 28, 2004 06:24 AM UTC
The style.AutoSize property only affects the row height when the user types into the cell. Is this where you are seeing the problem? If so, can you post a little sample project showing what you are doing, as this should work.
If you want to autosize text that comes directly from the datasource (not the user typing it), then you should call grid.Model.RowHeights.ResizeToFit, passing in the range you want to resize.
ADAdministrator Syncfusion Team May 28, 2004 10:15 AM UTC
Sorry, I missed the point that you were using a RichText celltype.
We currently do not support autosizing richtext cells. We will offer this in a future release (do not know a date).
One thing you might consider if this is something you really need, is that you can catch the CurrentCellClosedDropDown for the RichText cell. In the handler, you could try manually adjust the rowheight. But the problem is that there is no way exposed to get the ''prefferred height''. But if you have special knowledge of the text, maybe you could come up with some way of deciding how high the cell needs to be, and set that height in the event handler.