Posted 27 September 2017, 9:08 pm EST
Hello,
How to preserve the individual row heights of the grid. Each time the grid is redrew via update, accept changes or rebind, the individual row heights returned to their default heights.
Thank you.
Richard
Forums Home / ComponentOne / WinForms Edition
Posted by: richardcastro on 27 September 2017, 9:08 pm EST
Posted 27 September 2017, 9:08 pm EST
Hello,
How to preserve the individual row heights of the grid. Each time the grid is redrew via update, accept changes or rebind, the individual row heights returned to their default heights.
Thank you.
Richard
Posted 27 September 2017, 9:08 pm EST
Hello Richard,
This is the design behavior of the C1TrueDBGrid. It invalidates itself after every binding change.
Thanks.
Posted 27 September 2017, 9:08 pm EST
Adding or changing the data has nothing to do with binding, that’s just a bug. Invalidating itself would only apply to a change in the database structure itself or by connecting to a new datasource.
Posted 27 September 2017, 9:08 pm EST
Hi Lorin,
I am discussing it with the developers. Will get back to you once have any information from them.
~Pragati
Posted 10 October 2017, 12:38 am EST
Hi,
Please use the below code when the data is updated:
datatable.Clear(); //TrueDBGrid removes all rows from the datasource
adapter.Fill(dt); //TrueDBGrid creates new rows and grid doesn't know about previous rows
The problem should no longer occur.
Thanks.