Click to See Complete Forum and Search --> : MSFlexgrid


Karunav
September 11th, 2001, 04:36 PM
How to select all the rows in the MSFlexgrid through code? Iam trying to print data from the grid, Before printing i would like to select all the rows from the grid.

Thanks

Robert Moy
September 11th, 2001, 09:27 PM
Hello:
If I understand you correctly, you can use this

private Sub Command1_Click()
MSFlexGrid1.ColSel = Val(Text1.Text)

MSFlexGrid1.RowSel = Val(Text2.Text)
End Sub




You can put in the number of rows and columns that you want.

Good Luck