|
-
May 6th, 2001, 06:50 AM
#1
Thread Starter
Addicted Member
msflexgrid Text Colour Help
I need help on two things:
First How do I change the colour, style of the font for a whole row in the msflexgrid control in code
And Only That Row
secondly: How do I Hide A column In the Flex Grid Control
Help Would be much Appreciated
HELP!!!!!!!!!!!!!!!!!!!
-
Jun 8th, 2001, 02:11 PM
#2
Member
hide a column
try...
.ColWidth(idx)
where idx is the index of the column to be hidden
If I could only remember my name...
-
Jun 8th, 2001, 03:27 PM
#3
Check out the CellForColor/CellFontName properties of the mshflexgrid control.
this changes color/font for a single cell. Not sure if there is a similar one for Row. If not may be you need to loop though all cells in the row???
-
Jun 11th, 2001, 07:41 AM
#4
Member
hide a column
Sorry, I forgot the assignment of zero
.ColWidth(idx) = 0
where idx is the index of the column to be hidden
If I could only remember my name...
-
Jun 18th, 2001, 11:13 PM
#5
'Sub routine to set the color and bold property
Sub ChangeBackColour(ByVal lngColour As Long, ByVal blnFontBold As Boolean)
Dim i As Integer
For i = 0 To MSFlexGrid1.Cols - 1
MSFlexGrid1.Col = i
MSFlexGrid1.CellForeColor = lngColour
MSFlexGrid1.CellFontBold = blnFontBold
Next i
End Sub
In the form load event just call the funtion . For example:
For intRow = 0 To MSFlexGrid1.Rows - 1
If Val(MSFlexGrid1.TextMatrix(intRow, intCol)) = 1 Then
MSFlexGrid1.Row = intRow
ChangeBackColour vbRed, False
End If
Next
hope this helps ....,
ashky
-
Jun 19th, 2001, 12:43 AM
#6
Thread Starter
Addicted Member
MSFlex Grid Colour
Thank You Very Much However I gave Up A while ago and bought myself the VSFlex grid it is amazing what other nice features comes with it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|