Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
UltraGrid - UseFixedHeaders VS ExclusiveColScrollRegion - which to use
posted

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 

  •  ug.DisplayLayout.UseFixedHeaders = true;
  •  ug.DisplayLayout.Bands[0].Columns[0].Header.Fixed = true;
  •  ug.DisplayLayout.Bands[1].Columns[0].Header.Fixed = true;

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 ?

Parents
  • 71886
    Verified Answer
    Offline posted

    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.

Reply
  • 1935
    posted in reply to [Infragistics] Boris Toromanov

    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

Children