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
715
Columns order in runtime
posted

Hello!

How to define (change) columns order in runtime?

Thank you.

  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    You can use the Columns collection to re-order the columns. 

    ColumnBase col = xamWebGrid1.Columns["myCol"];

    xamWebGrid1.Columns.Remove(col);

    xamWebGrid1.Columns.Insert(0, col);

    Hope this helps. 

    -SteveZ