Solved

MSFlexGrid is highlighting the first cell

Posted on 2002-04-06
2
341 Views
Last Modified: 2008-02-01
I have an aggravating problem.....  

  My MSFlexGrid is working fine but when it loads the very first cell is highlighted.  I don't understand how or why it does this because I have

  MSFlexGrid1.SelectionMode = flexSelectionRow

 And when you mouse click on that first row it behaves normally by highlighting the entire row.

I've also added:

     .FocusRect = flexFocusNone
     .FillStyle = flexFillRepeat
     .Clear

  all to no avail.....  

     .RowSel = 0

 causes the first cell in the header row AND the first cell in the data row to highlight.

 * What is causing this first cell to highlight?
 * How can a clear the highlighting on this flexgrid so that nothing is highlighted?
 * How do I programmatically highlight a particular row?
0
Comment
Question by:EasyAim
2 Comments
 
LVL 5

Accepted Solution

by:
KarcOrigin earned 55 total points
ID: 6927559
Hi EasyAim,

Can I give you my idea -

Remove everything and try this. On the Form_Load event add this

' This will free MSFlexGrid1 with any selection mode
Private Sub Form_Load()
    MSFlexGrid1.SelectionMode = flexSelectionFree
End Sub

' This will select you whole row when you click on a perticular row on the MSFlexGrid

Private Sub MSFlexGrid1_Click()
    With MSFlexGrid1
        .RowSel = .Row
        .Col = 0
        .ColSel = .Cols - 1
    End With
End Sub

I wish this helps you!
Thanks
0
 

Author Comment

by:EasyAim
ID: 6957736
I haven't forgotten about you....  I haven't had a chance to get back to this project.  I'll give your proposal a try soon.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

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