Results 1 to 3 of 3

Thread: MSFlexgrid Cell Selection

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Posts
    261

    MSFlexgrid Cell Selection

    Hi i wonder if someone can tel me how can i do a multiple cell selection in MSFLEXGRID like the one in the attachment. I tried the selection mode but will not do it.

    Thanks for the help.
    Attached Images Attached Images  

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MSFlexgrid Cell Selection

    I use this with the right mouse button, but you could just as easily use it with the left
    Code:
    Private Sub MSFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) 
    If Button = vbRightButton Then 
         With MSFlexGrid1 
              .Row = .MouseRow 
              .Col = .MouseCol 
         End With 
    End If 
    End Sub 
    
    Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) 
    If Button = vbRightButton Then 
           With MSFlexGrid1 
                   .ColSel = .MouseCol 
                   .RowSel = .MouseRow 
           End With 
    End If 
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Posts
    261

    Re: MSFlexgrid Cell Selection

    Thanks Hack, that is very good when we want to have one selection mode with left mouse button and another with the right. Unfortunately that will not do the type of selection i'm looking for. What i will like to be able to do is select any cell and as the mouse move it will highlight all the cells followed by the one initially selected and as the mouse passes a row all that row will be highlighted completly but the last row. Just like the image attached. Sorry for my english!

    Thanks for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width