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 am using gridcontrol and using the virtual grid.
i determine that the current row (e.rowIndex) is a special row.
i then want to update the height of this row using: _g.RowHeights[e.RowIndex] = 10;
when i do this within the QueryCellInfo callback i get some weird behavior.
It seems that the next row gets highlighted (the row i set + 1). When i hover my mouse over the row that i made the change on, it then updates the row height to the correct height.
any ideas why this is happening?
thks,
ak
ADAdministrator Syncfusion Team July 25, 2005 06:22 AM UTC
You normally do not set row heights in QueryCellInfo. The reason is that this event is hit many, many, many times as your user works with the grid. For example, the event is raised continuously as your user moves teh mouse over the grid.
You should look for another place to change teh row height. For example, if teh actrion that triggeris the new row height i steh change of some value, then you might try using CUrrentCellValidating or CurrentCellAcceptedChanges as these events will be raised only when your user leaves teh changes cell.