Sir, the Auto Column fit is a great feature!
However, it seems to conflict with the automatic showing of Horizontal scroll bars
I understand that to enable the Horizontal scroll bars automatically I set the grid 'width' to some value, eg 1024. If the total width of all the columns exceed 1024 then the
horizontal scroll bars activate... all good.
a) If the total width of all the auto fitted columns > 1024 then the Horizontal scroll bars appear as expected - all good
b) BUT if total width of the auto fitted columns is < 1024 then the grids heading bar remains set to 1024 and is padded out. I include a screen shot to show you
Question: How do I resolve this?
Possible solution?
Is it possible to get the final width of the grid after (dataBound) completes? Then if the final width is greater than >1024 I set the grid with to '1024' to cause scrolling, but if the final width is < 1024 then I could then set the grid width to '100%' which does remove the problem. Setting to 100% causes the horizontal scrollbars to not appear, but I would not need them if <1024
Attachment:
Heading_Padded_34b5818.zip