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
620
How to stop the "row selected" column from scrolling away to the left
posted

When I create a ultragrid with the first column containing a row selector arrow

[>]

How can I stop that arrow column from scrolling away to the left when I scroll horizontally?

MS Access does not do this and I have been asked to replicate this behavior.

I have found that if I use

myUltraGrid.DisplayLayout.UseFixedHeaders =

 

true

then it will not scroll. But then I have the pins at the top, which I do not necessarily want.

Interestingly, if I fix column 0, then the first USER column stays put! In other words, that row selector column is not addressable by index, it would seem.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    UseFixedHeaders will fix the Row Selectors, so there is no need to address the RowSelectors by index.

    To turn off the pin indicators, use the FixedHeaderIndicator property.

     


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];
                UltraGridOverride ov = layout.Override;

                layout.UseFixedHeaders = true;
                ov.FixedHeaderIndicator = FixedHeaderIndicator.None;
            }

Children