florindaniel
Programmer
Hello,
I think the title is not very fortunate so here's my problem:
I have a table of documents, shown on a grid onto a form.
I want to activate a menu should the user right-click in the grid so "AllowCellSelection = .F.", Right-click event does the "do menu.mpr" and it works.
On the other hand I want to have one field (Selected) that can me checked or unchecked. If Allowcellselection is .F., I can't do that, if it's .T. I can't link menu activation with the right-click of the grid.
One solution I've tried is to have another one column narrow grid, sticked along the main document grid. This grid should contain only the "selected" field and has no scroll bars, so the visual image is like being part of the main grid. That's fine but the two grids don't synchronize (they don't show the same info at a time). I've tried to use "RelationalExpr" from the Document table to itself (Document) based on an unique ID but id doesn't work.
So, please, tell me if there's some way to synchronize the two grids or maybe you have a better idea to implement that feature.
Thank you,
Daniel
I think the title is not very fortunate so here's my problem:
I have a table of documents, shown on a grid onto a form.
I want to activate a menu should the user right-click in the grid so "AllowCellSelection = .F.", Right-click event does the "do menu.mpr" and it works.
On the other hand I want to have one field (Selected) that can me checked or unchecked. If Allowcellselection is .F., I can't do that, if it's .T. I can't link menu activation with the right-click of the grid.
One solution I've tried is to have another one column narrow grid, sticked along the main document grid. This grid should contain only the "selected" field and has no scroll bars, so the visual image is like being part of the main grid. That's fine but the two grids don't synchronize (they don't show the same info at a time). I've tried to use "RelationalExpr" from the Document table to itself (Document) based on an unique ID but id doesn't work.
So, please, tell me if there's some way to synchronize the two grids or maybe you have a better idea to implement that feature.
Thank you,
Daniel