Solved

MS FlexGrid

Posted on 2003-11-10
6
596 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
ID: 9717582
MSFlexGrid1.Row = 9
MSFlexGrid1.CellFontBold = True
0
 

Author Comment

by:JFrye
ID: 9718008
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
ID: 9718035
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:JFrye
ID: 9718041
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
ID: 9718052
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
ID: 9718249
No problem, sometimes it takes nothing more that that Ah Hah! Experience
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 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