Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting rows in grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00444946
Message ID:
00449832
Views:
8
>>>>>I am looking for a way to select several rows in a grid representation (read records). Has anybody experienced with that?
>>>>>The more windows-like it is, the better
>>>>
>>>>Hi Bjørn,
>>>>
>>>>I haven't tried Dragan's class, but you can also try Cetin's Basoz multiselect grid from Files section. I implemented it for a container class (posted also in Files section) and it works like a charm.
>>>
>>>Than you Nadya..
>>>I've looked on the description and must admit that I hoped for at more "mouse click and drag" solution, but maybe this is the the only way i can be done in the real FoxWorld...
>>
>>Hi Bjørn,
>>You could combine a transparent shape and Gridhittest method to achieve that effect I think.
>>Cetin
>
>There is another way to do this without Gridhittest method. In fact it does not require any changes to your grid itself except one line of code in AfterRowColChange event. I use the click-transparent shape (or container) for things like this. The functionality which selects multiple rows in the grid is in the shape/container method, so you can add this to any grid with just placing my class beside your grid and setting a couple of its properties along with a adding the above mentioned line of code into your grid AfterRowColChange().
>
>See my article "Make your controls click-transparent" in December 2000 issue of FoxPro Advisor. You can download the samples with the source code from the http://www.advisor.com/Articles.nsf/aid/NEKLN01

Thank you Nick!
I have downloaded the sample and found your article and intend to look it through -and hope not to have to invent the rectangle once more....
It is not the stronges of the species that survive, nor the most intelligent, it is the one that is most adaptable to change. -Charles Darwin
Previous
Reply
Map
View

Click here to load this message in the networking platform