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

    How to trap Header Click in MsFlexGrid ?

    Hi,

    I am using MsFlexGridcontrol 6.0. How can I trap the Column Selected when user clicks on the Header of the Grid.

    Regards

    K. Prasad



  2. #2
    Join Date
    Oct 1999
    Location
    germany
    Posts
    8

    Re: How to trap Header Click in MsFlexGrid ?


    'tab1 is the name of the MsFlexGridControl
    private Sub tab1_Click()
    Dim ColUserSelect as Long
    Dim RowUserSelect as Long
    Dim TextofCell as string
    TextofCell = tab1.Text
    ColUserSelect = tab1.Col
    RowUserSelect = tab1.Row
    ...
    ...


    End sub







  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How to trap Header Click in MsFlexGrid ?

    FlexGrid.Col and FlexGrid.Row will ONLY contain the column/row id of the first column/row after FixedColumns/Rows number..ie it is the first "cell".
    Use MouseRow and MouseCol in the Click event to get the exact position.
    For ordinary cells MouseRow = Row & MouseCol = Col , but for header/fixed cells they would be different. Atleast this is the case with Flexgrid that comes with vb 5.0

    RK

  4. #4
    Guest

    Re: How to trap Header Click in MsFlexGrid ?

    Thanx Ravi Kiran,

    It worked out for my application...
    If u don't mind I have One more Query .. Like I am using MAPI 6.0 Controls With Microsoft Exchange for developing Email Application.. Using this I am not able to retrieve the information present in Folders like Outbox and Sentbox whereas Inbox I am able to access.. How can I achieve this using MAPI Controls.. Before this I was using Collaboration Data Objects where everything was available.. But our system should be developed using these Controls..

    Can u just let me know if u have any idea for my problem.

    Regards

    Prasad K
    [email protected]
    Programmer Analyst
    Nucon Marketing & services Pvt Ltd
    Banjara Hills
    HYDERABAD
    INDIA




  5. #5
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How to trap Header Click in MsFlexGrid ?

    I say your other post abt the same subject.
    Sorry i have no idea about MAPI controls. Try to look into MSDN, about how to use them I am sure you will find some docs.
    Lother is a good guy on these things!!

    RK

  6. #6
    Guest

    Re: How to trap Header Click in MsFlexGrid ?

    Sorry Ravi Kiran For Calling upon u once again!!

    By any Chance do u have Lothar Haensler Mail-Id..

    And

    May I have ur Email-Id also

    Regards

    Prasad K



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