Recalculate the width of the columns

Hello.
How to  calculatethe width of the columns again,  based on ColumnsMaxLengthStrategy after remove some columns programmatically ?





1 Reply

SN Sindhu Nagarajan Syncfusion Team April 12, 2018 03:22 PM UTC

Hi Piotr, 
 
 
Thanks for contacting Syncfusion support. 
 
 
As per your scenario, we suspect that you are trying to update the column width of the columns when the columns are removed. If yes, you can use UpdateColumnWidths() method. Please refer to the below code, 
 
Code  Example 
gridGroupingControl1.TableModel.UpdateColumnWidths(true); 
 
Please let us know your exact requirement that you want to calculate the width of a single column or all the columns present in the grid after removing a particular column. It will be easier for us to provide the solution for your scenario at the earliest. 
 
Please let us know if you have any other queries. 
 
Regards, 
Sindhu  


Loader.
Up arrow icon