I would like to apply programmatically best fit for all columns of my gridview, and I haven't find whether it was possible in C#.
I've seen it was possible in VB through the ApplyBestFit() method, so I expect there is an equivalent method for C# (?).
Thank you in advance for your response.
Apply Best Fit for all columns
Answers
Hi Celine,
You can use the GridView.BestFitColumns() method to accomplish this task.
Please review the following article in help : XtraGrid GridView.BestFitColumns Method.
Thanks,
Andrew
Hello Greyce,
To avoid any misunderstanding, I've created a separate**GridView - Where in code the BestFitColumns method can be invoked**ticket on your behalf. Please refer to it for further discussion.