DisplayIndex for dataGridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian

    DisplayIndex for dataGridView

    When my dgv was bound the displayindex setting worked fine. Now I am
    populating the dgv via in-line SQL and the setting the displayIndex
    does not work correctly. Before I attempt to set the displayIndex I
    set a bunch of columns to visible=False and that is working correctly.

    The data is all over the place, and not even close to the displayIndex
    I set using :

    With dgv
    .Columns("ColA" ).DisplayIndex = 0
    .Columns("ColC" ).DisplayIndex = 1
    .Columns("ColB" ).DisplayIndex = 2
    End With

    FYI, I am using VS2008
Working...