How to Set the Currently Selected Row(s) to Font.Bold in MSFlexGrid?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicebasic
    New Member
    • Aug 2010
    • 91

    #1

    How to Set the Currently Selected Row(s) to Font.Bold in MSFlexGrid?

    I'm trying to find a new feature for MSFlexGrid.

    As you know, we can change the BackColor of the Currently Selected Row(s) in MSFlexGrid at design time or at runtime. To change its BackColor at runtime, we can use the following code:

    Code:
    BackColorSel = vbRed
    But I'm trying to find another feature. Let's assume that we have an MSFlexGrid on our form. Let's name it "Flex".

    Now, is it possible to use "RowColChan ge" or "Scroll" events of "Flex" to cause the Currently Selected Row(s) be displayed with Bold Font? And when the Selected Row(s) change, the Unselected Row(s) change to Normal Font?

    I think it's a rather difficult problem.

    I have thought over it. Maybe we can read all the rows and change the Font Style of the Selected Rows. But, maybe there's a better way someone can suggest here.

    Thank you for your help.
Working...