Hello,
I have a grid that is using the filter-option. After updating data in that grid (rowcount is changed too) the filter-listbox shows only "(all)". I did some investigations and figured out that HiddenRowCout gets negative. This is the reason why (VCL.TMSFNCCustomGrid) TTMSFNCCustomGrid.DoFixedCellDropDownButtonClick produces a empty filter-listbox (only "(all)").
You can get a nagative HiddenRowCount simply by calling the following lines: (SG1 : TTMSFNCGrid)
SG1.RowCount := 100;
SG1.UnHideRowsAll;
SG1.RowCount := 50;
ShowMessage(IntToStr(SG1.HiddenRowCount)); // <- -50
Greetings
Andreas Maier
We checked the issue with UnHideRowsAll and applied a fix that will be included in the next update.
Hello,
Thank you for your fast response.
My project changes the RowCount-value if the user changes a selection-creteria. If rowcount is decendet the filterlistbox is empty as described in my previos post.
You can do so if you take your grid-demo:
* Put in a Button,
* Create a OnClick-Event
* Set RowCount to 50 or so.
* Now Filters are empty.
Greetings
Andreas Maier
I tested this and with the fix applied this filter issue was solved.
Thank you very much for your fast work.
There is no fix attached to your reply. So i think i have to wait until the next release, right?
I hope the next release is soon so i can integrate it into my app ;-).
Greetings
Andreas Maier