Click to See Complete Forum and Search --> : How to trap Header Click in MsFlexGrid ?
October 28th, 1999, 01:44 AM
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
Eis
October 28th, 1999, 03:54 AM
'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
Ravi Kiran
October 28th, 1999, 04:17 AM
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
October 28th, 1999, 04:43 AM
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
kpra24@hotmail.com
Programmer Analyst
Nucon Marketing & services Pvt Ltd
Banjara Hills
HYDERABAD
INDIA
Ravi Kiran
October 28th, 1999, 05:03 AM
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
October 28th, 1999, 05:14 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.