Sorry, this is not directly related to this group, but don't know where to post.
I am using TCRDBGrid, can i hide the options menu? if yes, how?
Thanks,
Lai Fu Yan
how to hide optionsmenu from TCRDBGrid
There is no options in TCRDBGrid to hide options menu.
You can assign your own popup menu using the TCRDBGrid.OptionsMenu property, or correct TCRDBGrid code manually:
Open the CRGrid.pas unit and find:Then comment next lines:
You can assign your own popup menu using the TCRDBGrid.OptionsMenu property, or correct TCRDBGrid code manually:
Open the CRGrid.pas unit and find:
Code: Select all
procedure TCRDBGrid.IndicatorClick(Button: TIndicatorColButton; X, Y: integer);
Code: Select all
else
FOptionsMenuDef.Popup(P.x, P.y);