Hi

I have a DataGrid in which I have more columns than can be seen at
once, so the grid has a horisontal scrollbar.
All the columns have auto sized width. Cyclically at a rate of some
seconds, the application refreshes the grid and its data.

Lets say I have 30 columns and I scroll to the somewhere in the middle
of the scrollbar, showing 5 columns (for example the columns
15,16,17,18,19).

My problem is that when this cyclic refresh is made, then all the
width's are computed again. The columns that are "out of view" seems
to be collapsed (getting some minimum width). This causes the 5
columns in view to move to the left, bringing out column 15, 16 and 17
and bringing say column 20, 21 into view.
So instead of looking at column 15-19, the user is after the refresh
looking at 18-21.

Is there a way that I can get rid of this collapsing behaviour?


NOTE: The columns are not collapsed if I SCROLL them out of view
(which is the expected behaviour according to MSDN " When the sizing
mode is set to Auto or SizeToCells, columns will grow to the width of
their widest visible content. When scrolling, these sizing modes will
cause columns to expand if content that is larger than the current
column size is scrolled into view. The column will not shrink after
the content is scrolled out of view.")

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to