Solved

MS FlexGrid

Posted on 2003-11-10
6
593 Views
Last Modified: 2010-05-01
In a flexgrid of 4 columns and 10 rows, how can I make the data in the last row (row 9) bold?
0
Comment
Question by:JFrye
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:g0rath
Comment Utility
MSFlexGrid1.Row = 9
MSFlexGrid1.CellFontBold = True
0
 

Author Comment

by:JFrye
Comment Utility
That only made the single cell (Row 9, Col 1) Bold. I need Row 9, Cols 0-3 Bold, please.
0
 
LVL 5

Accepted Solution

by:
g0rath earned 20 total points
Comment Utility
You have the code for one, it's trivial to do it for N rows

Dim i as Integer
MSFelxGrid1.row = YourRow
For i = 0 To MSFlexGrid1.Cols - 1
        MSFlexGrid1.Col = i
        MSFlexGrid1.CellFontBold = True
Next i
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:JFrye
Comment Utility
Ok, I figured it out:

Private Sub BoldRow()
   
    Dim intBold As Integer
   
    For intBold = 0 To 3
        grdInfo.Row = 9
        grdInfo.Col = (intBold)
        grdInfo.CellFontBold = True
    Next intBold

End Sub
0
 

Author Comment

by:JFrye
Comment Utility
Thanks! I actually figured it out seconds after you posted a reply. Hehe... Your first answer definately jump-started me, so you would get the points anyways. Thanks again!
0
 
LVL 5

Expert Comment

by:g0rath
Comment Utility
No problem, sometimes it takes nothing more that that Ah Hah! Experience
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now