I need to provide a custom context menu that may be different for each cell in a grid. If the cell does not have focus this can be triggered off the MouseDown event. If it does have focus you have to do something like
this. This strategy works fine for the case where each grid cell has the same context menu.
If I want to have custom menu for each cell is there a preferred way to do this?
I think I can simply override tb.ContextMenu for each cell. Can I count on each grid having one GridTextBoxControl control or do I need to fetch it every time a cell gets focus?