CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MSFlexGrid

  1. #1
    Join Date
    Nov 2001
    Location
    Toronto, Canada
    Posts
    199

    MSFlexGrid

    Hello Gurus...
    When my code execute, I am displaying the quary item in MSFlesGrid as table. I wonder if i can get any row information when a user click on the row. say, when I click row3 from MSFlexFrid, I would like to get the data and do somthign with it. How do I do that?

    I really appreciate your gudide...

    Thank you,
    Kethees


  2. #2
    Join Date
    Nov 2001
    Location
    Pan Yu city, GuangDong, China
    Posts
    47

    Re: MSFlexGrid

    Only two things to remember...
    1) Process the mouse event of your wish (Down/Up/Click/DblClick/Move).
    2) Use following properties to get the exact cell (or row/col if you wish)
    - MSFlexGrid1.MouseCol
    - MSFlexGrid1.MouseRow

    I hope this solves your problem.

    With Regards,
    Prashant.

    With Regards,
    Prashant Sharma

  3. #3
    Join Date
    Nov 2001
    Location
    Pakistan
    Posts
    9

    Re: MSFlexGrid

    hi..
    MsHFlexGrid has a method TextMatrix, in Click Event of Grid (suppose name of grid is grd) type..
    grd.textmatrix(grd.row, grd.col).. You can get the data by using this line and also if you want to write something like
    grd.textmatrix(grd.row, grd.col)="Any Text You Want"

    I think it will solve your problem..

    AITG..

    AITG

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

Featured