GridView Column Widths
am 23.10.2007 15:21:00 von GuyRepost as no reply from dotnet.Framework.ASPNet
I have a GridView with autogenerated columns and I programatically set the
width and visibility of each column. The code executes correctly as with the
debugger I can see the widths and visibility set to the correct values.
However although the columns obey the Visibility property correctly they
ignore the width property.
i have done this by changing the widths on each control and also by adding
BoundFields to the GridView.Columns collection and seting their
ItemStyle.Width property.
Neither method works.
As an alternative how can I determine the width of the columns (remember the
GridView is autogenerated so its Columns collection is empty)
How can I fix this?
Guy