Profile Picture

NDataGridView column context menu

Posted By Brad Swearingen 13 Years Ago
Author
Message
Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3

I noticed the Nevron NDataGridView widget shows a context menu when right clicking the grid column header.  This menu has "Sort Ascending", "Sort Descending" and other menu items on it.

My NDataGridView requires I set VirtualMode to true and provide my own custom sorting.  When doing this the sort menu items remain yet they do nothing when the user selects them.  How can I remove these menu items from this context menu or hook into the event when the user selects them?

I'm on the 11.1.17.12 build.



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 3,054, Visits: 3,967
Hi Brad,

You can only disallow the whole context menu to be displayed by setting UseColumnContextMenu to false.
You can't change commands from this context menu.

Best Regards,
Nevron Support Team



Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3
Thanks very much for the tip.  Works great.



Similar Topics


Reading This Topic