Posted 29 July 2021, 11:23 am EST
Is there a way to change the filter column window size ?
Forums Home / ComponentOne / WinForms Edition
Posted by: philippe.berhin on 29 July 2021, 11:23 am EST
Posted 29 July 2021, 11:23 am EST
Is there a way to change the filter column window size ?
Posted 30 July 2021, 12:25 am EST
Hi,
You can use the MouseClick event to know when the FilterIcon is clicked and then use the OpenForms property of the Application to get the opened filter editor form. Once you have the form, you can customize it as you want.
Please refer to the sample attached.
Regards
Avnish
FlexGridFilterFormSize.zip
Posted 30 July 2021, 3:10 am EST
Hi Avnish
Perfect. Thanks for the solution
By the way, is there any known release date for the 2021v2 ?
Posted 30 July 2021, 8:10 am EST
Correction: In Fact the code in the FlexGridFilterFormSize works partially
The maximum size seems to be 440 (width) on 328
So if you have long text in on column, user still have to scroll horizontally
Posted 30 July 2021, 8:24 am EST
Works if you set the Maximum Size before
frm.MaximumSize = new Size(800, (int)(c1FlexResult.Height * 0.8));
frm.Width = 800;
frm.Height = (int)(c1FlexResult.Height * 0.8);
Posted 2 August 2021, 1:22 am EST
Hi,
Glad, we could help.
The ETA for the 21v2 release is 4th August 2021.
Regards
Avnish