Hi Bryan Roberts,
Thank you for your interest in Syncfusion products.
Query Hide a multiple
rows quickly. |
You can use the RowHeights.SetRange instead of HideRows.SetRange
to hide a rows. This function also used to hide the rows based on the range. Please refer the following code. grid.RowHeights.SetRange(0,
INITIAL_ROW_COUNT,ihidden_row,true);// hidden_rows, true); And use ResetRange property to increase
the performance of the grid. We can improve the performance by using the
.RowHeights.SetRange and ResetRanges method. grid.RowHeights.ResetRange(0,
INITIAL_ROW_COUNT);
Please refer the attached sample file for further
reference. |
Please let me know if you have further concerns.
Vinish.
int rowCount = _gridPDD.RowCount; int rowIndex; int[] hiddenRows = new int[rowCount]; for (rowIndex = 0; rowIndex < rowCount; rowIndex++) { hiddenRows[rowIndex] = 0; } _gridPDD.RowHeights.SetRange(2, rowCount, hiddenRows, true);
Where _gridPDD is GridControl.
With this code I am getting no results. The pins (all of the pins) I am attempting to
hide are not hiding and are still showing in my grid.
Thank you,
Bryan R.
Hi Bryan,
Thanks for your update.
Query Row hide
performance. |
We have analyzed the sample which is provided by us on
last update. The performance of row hide is very fast with our last suggested
solution. Please let me know did you have used the ResetRange property in your application. Please refer
the following code. grid.RowHeights.ResetRange(0,
INITIAL_ROW_COUNT); |
Please let me know if you have further concerns.
Regards,
Vinish.
Hi Bryan,
Thank you for your update.
We regret for the inconvenience caused with delay. We have
analyzed code and you update. Based on your update you have used the row height
to zero in events. Some event may fires
may tomes while the grid is refreshed. But in your update you didn’t mentioned
that and the sample code have some filters also.
To increase the performance you can avoid the grid refresh
in may place. If you have provide the sample application (whole CS project) or
provide any sample application with all your requirement to reproduce the issue
in our end we can able to solve or used to identified the original issue in the
application. Please provide the sample code as soon as possible.
We will wait for your replay.
Vinish.