sripriyaunni
August 1st, 2001, 06:24 AM
Is it possible to make any row or column of a MSFlexgrid as Fixed?
Usually when we specify fixed rows/columns as 2 the first 2 columns or rows will be fixed. Can I make 10th row as fixed instead?
Cimperiali
August 1st, 2001, 07:34 AM
'No, but you can use this trick
'put a msflexgrid on your form and a commandbutton
private Sub Command1_Click()
Dim intCol as Integer
With MSFlexGrid1
.Rows = 15
.Cols = 3
.Row = 9
.GridLines = .GridLinesFixed
for intCol = 1 to 2
.Col = intCol
.CellBackColor = .BackColorFixed
.CellForeColor = .ForeColorFixed
next intCol
End With
End Sub
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood,
Bruno Paris and all the other wonderful people who made and make Codeguru
a great place.
Come back soon, you Gurus.
The Rater