>*** in Init Event of the form, or there where you build the grid if you do that in separate method:
>
>FOR lnFor = 1 TO thisform.Grid1.ColumnCount
> loColumn = thisform.Grid1.Columns(lnFor)
> FOR lnForCol = 1 TO loColumn.ControlCount
> loControl = loColumn.Controls(lnForCol)
> IF UPPER(loControl.BaseClass) # "HEADER"
> BINDEVENT(loControl,"RightClick",thisform,"GridRightClick")
> ENDIF
> NEXT
>NEXT
>
>*** Make a Method in the form named GridRightClick
>*** in it put:
>
>DO MyShortMenu.MPR && or whatever you want
>
>
>
>Don't forget to UNBINDEVENTS() when you exit the form.
Why do we want to UNBINDEVENTS(). Do we have to do it in our grid class Destroy method?
If it's not broken, fix it until it is.
My Blog