This is a migrated thread and some comments may be shown as answers.

Column header dropdown

1 Answer 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lovsten
Top achievements
Rank 1
Lovsten asked on 03 Sep 2007, 01:15 PM
How can I prevent showing the dropdown meny when user right-clicks in the column headers (the one with conditional formatting, column chooser, hide, best fit)?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 03 Sep 2007, 04:45 PM
Hello Lovsten,

To disable the header columns context menu just set the AllowColumnHeaderContextMenu property of MasterGridViewTemplate to false. Use this code:

this.radGridView1.MasterGridViewTemplate.AllowColumnHeaderContextMenu = false;

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Lovsten
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or