Results 1 to 6 of 6

Thread: MSFlexGrid question

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved MSFlexGrid question

    If a user clicks on any row (except fixed row) in my msflexgrid it highlights the row in yellow. The problem is if the fixed row is clicked it returns the same row number (row = 1) as the first row of data. eg.. If "Ask" is clicked it returns row = 1 and then highlights the "NAB" row.

    How can I trap if the fixed row has been clicked or not?
    Attached Images Attached Images  
    Last edited by lintz; Dec 3rd, 2005 at 06:05 PM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: MSFlexGrid question

    In order to get the Fixed row, you need to check MouseRow instead of Row.

  3. #3

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: MSFlexGrid question

    Simple as that

  4. #4

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: MSFlexGrid question - re-opened

    Si, that doesn't seem to be working for me??

    If I use the below, MouseRow always returns 4 (total number of rows) even when I click on any row.

    VB Code:
    1. If Flex1.MouseRow > 1 then
    2. 'do my stuff
    3. end if

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: MSFlexGrid question - re-opened

    Is that when it is running, or when you are in Break mode? (ie: need to press F5/F8 to continue running).

    It should work fine when it is running, but produce strange results in Break mode.

  6. #6

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: MSFlexGrid question - re-opened

    It gives MouseRow = 4 when in break mode....but works OK when running exe. (used msgbox to display selected row)

    Thanks.

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