Hi!
Is your grid an independent object or it is put on the form? Grid should be a part of the form. When it is not, you require to call a function, not a form method. You can, of course, make a grid class and new method in that grid class, so you will call it using "this.parent.parent.MyMethod" from the RightClick event of the control inside of the grid column. Then base your grin on that class.
HTH.
>thanx vlad!!
>
>but the real problem is ...when i right click on grid..the right click event is getting fired but vfp says
>
>"thisform " is can only be used within methods.
>
>so the problem is how do i refer to the method define in my form.
>
>Waiting for ur reply
>
>Sunny
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.