locked
adding columns to gridview dynamically RRS feed

  • Question

  • hi,

    how to add columns inbetween existing columns of gridview dynamically............


    vvs

    Friday, May 4, 2012 5:10 AM

Answers

  • Use INSERT method.

    dataGridView.Columns.Insert(a, b);
    //a is a column index
    //b is an actual column instance (reference of it)


    Mitja

    • Proposed as answer by Centigradz Friday, May 4, 2012 8:43 AM
    • Marked as answer by Alexander Sun Friday, May 18, 2012 4:39 AM
    Friday, May 4, 2012 6:23 AM

All replies