Hi;
I have a problem that I don't know how to solve.
I have a grid with several columns and rows containing different data types (text, numbers, images, etc.). Some of the cells are formatted using the RowFormatting event.
The grid also allows filtering by column.
I noticed that when my grid has many rows and is filtered, scrolling becomes very slow. If it's not filtered, it works perfectly with the same number of rows.
After investigating further, I realized that the FilterChanged event is being triggered multiple times when scrolling.
Furthermore, the value of MasterView.Rows.Count is different each time the event is executed. Sometimes it shows the filtered count, and other times it shows the unfiltered count.
This, in addition to the slowness, is a serious problem. For example, if I have a thread running that performs an action on filtered rows, I encounter issues with indexing and incorrect row selection.
I've attached a sample project. If you filter by a column and then scroll, the number of rows in the MasterView will be displayed in the text box.
Could you help me to solve this problem?
Thank you so much.
Regards