Topic: Need help. for tablegrid
Hi friend
There is way to fix column setting ? Intact every time when I run project I have set its columns width. Can any one help me to set columns width permanently?
Thanks
My Visual Database → General → Need help. for tablegrid
Hi friend
There is way to fix column setting ? Intact every time when I run project I have set its columns width. Can any one help me to set columns width permanently?
Thanks
There are a couple of ways to fix the column widths.
1. In the onShow event of a form you could write the following for each of your columns
Form1.TableGrid1.Columns[0].Width := 30;
You could alternatively use
Form1.TableGrid1.BestFitColumns(bfBoth);
This adjusts the columns and header to automatically fit the contents, so this is dynamic as it will change depending on the data width.
There is a third option, which is very long and laborious and really shouldn't be used, which is to manually enter your column widths into the forms.xml file. This is a BAD IDEA manually altering the XML file can result in MVD not starting. I'd go for options 1 or 2 above.
Thank you CDB. It works.
My Visual Database → General → Need help. for tablegrid
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi