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
1253
Column Index
posted

Hi,

If I have data with the following columns A, B, and C but would like to display B, C, and A in the xmalWebGrid.  How can I do this in the code?  Thanks for you help.

Parents
  • 40030
    Verified Answer
    Offline posted

    Hi,

    You can use the Columns collection to reorder your columns:

    this.DataGrid1.Columns.Remove(colB);

    this.DataGrid1.Columns.Insert(0, colB);

    -SteveZ 

Reply Children