When populating a mshflexgrid, the first column is MT. How to have the first line to be the starting point? So far I have
sorting on the Track.
The info populating the grid comes from a treeview. On the double click, the grid is cleared and the new data is added. However, After the grid is cleared the new data is added at the end where the old data was listed. Thus leaving several blank rows. How to correct?
Thanx for the help.
Code:
With flgTracks
.AddItem rst!trackid & vbTab & rst!Title & vbTab & rst!Duration
End With
flgTracks.Col = 0
flgTracks.Sort = 1
rst.MoveNext
Loop
rst.Close
The info populating the grid comes from a treeview. On the double click, the grid is cleared and the new data is added. However, After the grid is cleared the new data is added at the end where the old data was listed. Thus leaving several blank rows. How to correct?
Code:
Private Sub flgSetHeaders() 'called by the grid_click event
With flgTracks
.Clear
.FixedCols = 1
.FixedRows = 1
.TextMatrix(0, 0) = "Track"
.TextMatrix(0, 1) = "Title"
.TextMatrix(0, 2) = "Length"
.ColWidth(0) = 500
.ColWidth(1) = 4320
.ColWidth(2) = 770
.Width = 5925
End With
End Sub