Results 1 to 3 of 3

Thread: Selecting Entire Row In Flex Grid???

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Selecting Entire Row In Flex Grid???

    I know there is a way to select an entire row in a flex grid when you click on just one cell of that row. it is the selectionMode set to 1 (by row). Is there a way i could select an entire row through code though?

  2. #2
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843
    I think the selection mode needs to be by row first,
    then do this.

    flexgrid.row = [The row you want selected]
    flexgrid.col = 0
    flexgrid.colsel = flexgrid.cols-1

    Try that.
    Merry Christmas

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Private Sub Command1_Click()
    2.      With MSFlexGrid1
    3.         .Row = 2 ' any row
    4.         .Col = 0
    5.         .ColSel = .Cols - 1
    6.     End With
    7. End Sub

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