I want to know the current width of all columns of a grid at run time.
The column width collection should be indexed on the mapping names we give in tabledescriptor.
Can I know how to approach this problem?
I am not able to search the forums.Only the first page of results is displayed.When you click the second page link it goes to the forum home page.Kindly check with this.
We have this property this.TableControl.Model.ColWidths[ string name];
what does here "name" represent?
Is it the mapping name?
All my current width info are stored here, but i am not able to pass the mapping name and get the value, when i say this.TAbleControl.Model.ColWidths[mappingname], it always return 0.
ADAdministrator Syncfusion Team August 8, 2005 04:05 AM
In a GridGroupingControl, you should use grid.TableDescriptor.Columns[ColName].Width to get the column width. The colname should be teh mappingname used to define teh column.
CVCatinat VelmourouganAugust 8, 2005 04:09 AM
I tried this earlier.
This always returns 0 for every column.
Will the width get reflected even if the user adjusts it during run time?For example, if he double clicks and it changes the width, will it get reflected?
CVCatinat VelmourouganAugust 8, 2005 04:17 AM
sorry. it actually return -1.
ADAdministrator Syncfusion Team August 8, 2005 04:22 AM
It seems to work for me.
What version of our libraries are you using?
CVCatinat VelmourouganAugust 8, 2005 06:22 AM
It was such an easy thing and i missed it.
Didnt sleep well yesterday, thats why I missed on it.
Anyhow thanks buddy.
>It seems to work for me.
>What version of our libraries are you using?