Repost as no reply from dotnet.Framewor k.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.Column s 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
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.Column s 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