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
215
Change the column order in UltrWebGrid.
posted

I want to change the position of the column dynamically in UltrWebGrid. I am not seeing VisiblePosition property of Header in my Ultrwebgrid. Is there any other way that i can change the Postion? Please advise.

ultraGrid1.DisplayLayout.Bands[0].Columns[0].Header.VisiblePosition

Parents
  • 12679
    Verified Answer
    posted

    Hello,

    you can move the columns programmatically in the following way;

    For example in  InitializeLayout Event handler  : 


       88  protected void InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)

       89     {

       90         e.Layout.Bands[0].Columns[0].Move(1);

       91         //Or directly in another event hadler:

       92         UltraWebGrid1.Columns[0].Move(2);

       93     }

     

    Make sure your settings allow column moving:

    Docs : Column Moving

Reply Children