Solved

MSFlexGrid is highlighting the first cell

Posted on 2002-04-06
2
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 70
Getting warning: You are about to delete 1 row(s) 9 61
VB6 ListBox Question 4 62
Access 2003, find all instances of database ODBC 3 50
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

734 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