How to Replace Columns Orders

I have a DataGridView with columns col1,col2,col3

my objective is How to change the order of these columns at the runtime

e.g: col3,col1,col2

Please if a VB Code available

Thanks many more




Answer this question

How to Replace Columns Orders

  • TeeBoy

    Changing the DisplayIndex property of each column should re-order the columns in the grid.

    Hope this helps.


  • KHaines

    Many Thanks to you for your help

    Mohamed Omar



  • How to Replace Columns Orders