Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid method when a row is selected
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01638393
Message ID:
01638405
Views:
44
>>>>Hi,
>>>>
>>>>Is there a method of a grid that fires when a user clicks on a row? The method AfterRowColChange fires only/when the row is changed.
>>>>But if the grid has only one row, this method does not fire.
>>>>
>>>>I thought about Grid Click() method but it fires even if the grid has no records. And I need to fire a method that indicates that a row is selected.
>>>>
>>>>TIA.
>>>
>>>Try BeforeRowColChange
>>
>>Thank you. But it also only fires when you change the row. But if the grid has only one row, it does not fire.
>
>But you can always check how many rows the grid have if you found that click event works. E.g. if grid doesn't have rows and click event fired, just bail out.

This is pretty much is my work around now. I check if the grid has rows and "assume" that the user selected the top one.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform