Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with a grid
Message
From
21/10/2006 03:33:19
 
 
To
21/10/2006 02:18:51
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01163777
Message ID:
01163780
Views:
8
>Hi i have a form with a grid and this are the data properties for the grid:
>
>readonly = .t.
>RecordSourceType = 1- alias
>
>
>this grid is in a pageframe, here is the code in the click method:
>
>
>SELECT C.nombrecomprador AS comprador, C.nombreyegua AS yegua,;
>  C.nombrecriadero AS criadero, C.hijo AS hijo, C.valorsemen AS valor,;
>  C.colorhijo AS color, C.municipio AS municipio;
> FROM fc!ventasemen C;
> WHERE  C.identificación = thisform.pageframe1.page1.txtIdentificacion.Value;
> into cursor datosy
>
> thisform.pageframe1.page3.grid1.RecordSource ="datosy"

This is useless
***** > thisform.pageframe1.page3.grid1.refresh
>
>
>I would like to click in a row of the grid and open a form and feed some textboxes, combos, etc, to modify it.how can i do this?
>
>thanks

Set
grid.AllowCellSelection = .F.

* grid.Click
OpenAForm(rowPk)
* you can implement OpenAForm in many ways
1) DO FORM  theForm WITH rowPk
2) form=NEWOBJECT(class,classlib,,rowPk)
   form.show(1|2) && but Modal is not sure
...
Previous
Reply
Map
View

Click here to load this message in the networking platform