Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid class to know if any control is double clicked
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00971672
Message ID:
00971780
Views:
16
Hi Marica

>The problem is that when you dblClick on a row in the grid that has data, it is the contained control's (the textbox) dblClick that fires. The only time the grid's dblClick fires is when you click on a row that does not have data.

Beat the idea of finding out which row has been double-clicked <g>

>
>This.Parent.Parent.dblClick()
>
>
>And when you set the ColumnCount of the grid, loop through the columns collection and programmatically add your custom text box and remove the native one.

I liked Gregory's idea of putting the above code into the class I have for the columns textbox, which is luckily subclassed.

Thanks for your help.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform