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
920
programmatically pin columns UltraWinGrid
posted

I need to programmatically pin the first four colums...I'd also like to do this without showing the pins, i dont want the user to pin/unpin, i just want the first four columns not to go away when i scroll to the right...this should be simple and i cant find it anywhere.

UltraWinGrid

 

 

thanks,

Parents
  • 469350
    Verified Answer
    Offline posted


            private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
            {
                e.Layout.UseFixedHeaders = true;
                e.Layout.Override.FixedHeaderIndicator = FixedHeaderIndicator.None;
                for (int i = 0; i < 4; i++)
                {
                    e.Layout.Bands[0].Columns[i].Header.Fixed = true;
                }
            }

Reply Children