I want to fill the flex grid through code. My code is below. The headings are added alright, but on the second row. So I have one blank grey row, then the next grey row has the headings. Then the data appears correctly.
How do I get the headings on the first row? Is there some band setting I must use?
'Set the column headings
gridData.ColHeader(0) = flexColHeaderOn
For lColCount = 1 To lCols
gridData.ColHeaderCaption(0, lColCount) = & _
rsTemp.Fields(lColCount - 1).Name