Hi all
I go a table with 6000 record, and what I would like to know is how could I code a Command Botton to filter on the grid only the field I wish to show up without creating and sql to store data in other table..
In the CommandButton click event, you can add a functionality similar to Find Button code of the default wizard navigation find button. This will enable you to choose whatever field you want and also set the filter as you need with even multiple fields. Hope this helps you. If you need more on this topic, you can post again or ask for it here.
Best of luck
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
If you meant the showing/hiding of columns in grid, show all columns, but for all columns you want to hide set the properties:
width=0, movable=.F., resizable=.F.
Each time you want show some column, just set these properties back to normal values.
If you meant filtering by certain value, do not do this. Grid is slow with filtered data because it does not use rushmore optimization when going top/bottom (does not use the indexes). I would also suggest to use the view. Or, if you filter records by some key values, SET KEY command that is quick with grids.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.