Results 1 to 5 of 5

Thread: MS Flexgrid - Only allow a single row to be selected

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Posts
    31

    MS Flexgrid - Only allow a single row to be selected

    Does anybody know if this is possible,

    I have allowbigselection set to false and selectionmode set to row

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MS Flexgrid - Only allow a single row to be selected

    You would have to loop thru the whole row and manually select all the cells.
    You can use the .Rows statement to keep track of the last row.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Posts
    31

    Re: MS Flexgrid - Only allow a single row to be selected

    Hi David,

    I'm not sure that I follow you. How does this prevent other rows from being selected?

    For example if I hold down shift and drag the mouse I can select several rows

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MS Flexgrid - Only allow a single row to be selected

    No, but you could put code in the mouse up event. What's the problem of seleciting multiple rows? Can't you just check and see if more than one row is selected?
    I guess I don't understand what you want to do. I thought you could click in any row and highlight the whole row after clearing any other rows. That way only one row would be selected at a time.

  5. #5
    Lively Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    107

    Re: MS Flexgrid - Only allow a single row to be selected

    Ummm surely this is as simple as on mouse up event

    .rowsel = .row
    I am not suffering from insanity......... ...........I am loving every minute of it.

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