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've got custom grid implementation using the GridControl based on the RepeaterUserControlSample code.
I want to improve it so that my user control which is used to edit row data can change it's height according to data that is entered.
Specifically, the user will make changes to the row data through the user control which will cause the user control to increase or descrease in height. I then was the grid row to resize accordingly.
What is the easiest way to do this? I've tried using RowHeights.ResizeToFit, but it doesn't seem to work in this situation (it's always resizes far too small).
RARajagopal Syncfusion Team August 2, 2007 03:53 PM UTC
Hi Ben,
If you want to autosize the rowheight as the user enters data inside the cell, then please try the below property settings that will help you in doing this.
As I stated in the first post I have implemented a grid based on the RepeaterUserControlSample. This means I implement my own binding and use a custom user control to display and handle the editing of the data.
I want to be able to adjust the height of my custom user control and also the height of the row based on a particular user action.
I have tried calling RowHeights.SetSize(). This allows me to adjust the row height, but causes other problems.
If for example I have three rows. If I increase the height of the first row by 50% the height of the 3rd row decreases by 50%. It seems that although I can increase the row height of an individual row, the accumulated height of all the rows remains the same, so rows are effectively being pushed off (squahsed up against) the end of the grid.
Please could you suggest a fix for this.
I recommend looking at the sample I mentioned before replying again.
Thanks,
Ben.
>Hi Ben,
If you want to autosize the rowheight as the user enters data inside the cell, then please try the below property settings that will help you in doing this.