Hi
UltraGrid is indeed a very rich control, the "problem" is that when there is so much choices/ways to implement functionality then i get confused an not sure what to choose.
visually, i have something similar which can be found here at the first post but with two bands (parent/child)
http://news.infragistics.com/forums/p/12212/50962.aspx
on the left side i want the colums to be fixed on both bands, on the right side where you can see the hours columns (which are available on both bands) i want them to be scrollable horizontally on both bands
my question is what is the difference in using fixed columns with something like
or using ExclusiveColScrollRegion like
ug.DisplayLayout.Bands[0].Columns[0].Header.ExclusiveColScrollRegion = ug.DisplayLayout.ColScrollRegions[0];
ug.DisplayLayout.Bands[1].Columns[0].Header.ExclusiveColScrollRegion = ug.DisplayLayout.ColScrollRegions[0];
would it be correct to say that the purpuse of using ExclusiveColScrollRegion is to be able to see two (or more) parts of the same table (maybe long table) at the same time ?
for example at this thread http://blogs.infragistics.com/forums/p/16384/59768.aspx it was advised to use fixed columns instead of the ExclusiveColScrollRegion
so what is the difference between both ?
Hello sharik,
The purpose of the 'ExclusiveColScrollRegion' property is to have the column only appearing in a specific region and not in any other.
The 'Fixed' property on the other hand, specifies whether the column header will remain in view when the grid is being scrolled.
Please do not hesitate to contact me if you need any additional assistance.
thank you for your response, but maybe i ment to look at ColScrollRegion and not specifically 'ExclusiveColScrollRegion'
i found this :
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.1/CLR2.0/html/WinGrid_Working_with_Column_Scroll_Regions.html
and it says the following :
A grid with many columns can be difficult to work with on a display with restricted real estate. Column Scroll Regions allow the user or developer to split the display horizontally so different columns can display in each Region.
Another use of column scroll regions is to give you a way to "lock" columns into a region so they will display continuously regardless of what columns show in another region. However, you should note that beginning with Version 3 of the WinGrid™, analogous behavior can be implemented more simply and easily using the built-in Fixed Headers functionality. Fixed Headers give you the ability to lock columns and column groups and prevent them from scrolling by simply setting properties of the Layout and the Header. For more information, see Specify Fixed Columns.
While the new Fixed Headers functionality will be the better alternative for locking columns in most instances, there are still reasons why you might want to use the older method described below. One is that Fixed Headers functionality does not operate when the new Row Layout functionality is also enabled. If for any reason you need manual control over the locking of columns, the scroll region technique described here will still prove useful.
------------
from the bold part it looks like that the Fixed Headers functionallity is somehwat the "new" ScrollRegion. would it be correct to say that ?
what i didn't understand what was the meaning in the underlined part of the last paragraph . ?
furthermore i'm still not sure of what to to choose ? Fixed Headers or ScrollRegions for my project
Thanks Mike and Boris, I now understand, thanks for the suggestion mike.
I am going to use the Fixed Headers also because with the Exclusive Scroll Region both sides has the Collapse/Expand indicators which i do not want it to be like that.
Thanks again guys, for your constant and detailed support
Hi,
sharik said:from the bold part it looks like that the Fixed Headers functionallity is somehwat the "new" ScrollRegion. would it be correct to say that ?
Yes, that's a fair assessment. FixedHeaders are generally better. The ColScrollRegion functionality is good for certain types of applications where you need to see the same data twice. ExclusiveColScrollRegion was something we added because it was something that was relatively easy for us to add - it was sort've a quick fix to allow you to have fixed columns without actually having fixed columns. But now we actually have fixed columns, and I think most applications are better off using them.
sharik said:what i didn't understand what was the meaning in the underlined part of the last paragraph . ?
FixedHeaders are not supported if you are using RowLayouts. So if you are setting UseRowLayouts to true or RowLayoutStyle to anything other than None, then FixedHeaders will not work.
As for "manual control over the locking of columns"... I'll be honest with you, I have no idea what that means. :)
Overall, if you are not using RowLayouts, you are probably better off with FixedHeaders.