borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (server share\'s DB with client..)Next Topic (Vb,MySql- insert/import function) New Topic New Poll Post Reply
AndreaVB Forum : Database : How to know event click on header of MSFlex was happened?
Poster Message
truonglekhanh
Level: Trainee

Registered: 30-07-2006
Posts: 2

icon How to know event click on header of MSFlex was happened?

I want that when user dbclick on the header of MSFlex, I will soft data with  column selected. But I can't capture the event dbclik on header. Please help me!

30-07-2006 at 06:58 PM
View Profile Send Email to User Show All Posts | Quote Reply
yronium
Level: Moderator


Registered: 14-04-2002
Posts: 907
icon Re: How to know event click on header of MSFlex was happened?

What do you mean by 'header of MSFlex'?
If you mean any column header in a MSFlexGrid control where you set the FixedColumns property on 1, it is only a normal cell doubleclick with grid's Row property value equal to 0.
So, in the Grid_DoubleClick() event, you can check it with
    If grdMyGrid.Row = 0 Then      ' user has double-clicked a column header
        ' clean up all grid's cells, included the cells in header's row
        grdMyGrid.Clear
        ' requery the grid, included header's row
        [... code to requery the grid here...]


Otherwise, explain us a bit more clearly.
Hope it helps

____________________________
Real Programmer can count up to 1024 on his fingers

30-07-2006 at 09:22 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : How to know event click on header of MSFlex was happened?
Previous Topic (server share\'s DB with client..)Next Topic (Vb,MySql- insert/import function) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder