I would assume that you used the OnMouseDown event for the table view so how did you identify that you were on a header and to which column the header belonged?
Main Topics
Browse All TopicsI am building an app that uses a DevExpress Quantum Grid and I want to give the user the ability to move the columns and to rename the caption in the column header. I used the OnColumnHeaderClick to open a dialog box for renaming the column. Now the dialog box opens immediately when the mouse button is depressed so there is no opportunity to drag the header to move the column. I don't see an event for a double click in the header which would be an easy solution.
Can someone suggest how I might give the user an intuitive, column-specific mouse action that would open an InputBox as the dialog for the new column header caption while preserving the ability to drag columns to create a new column order?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this is how to extend the quantumgrid rightclick menu
first thing: you need to add a TcxGridPopupMenu to the form
and assign the property Grid
next invoke the editor for the popupmenus and a new TcxPopupMenuInfo
and set it's properties:
The view it's for, when it will be visible you can set in the HitTypes property (your case: gvhtColumnHeader)
and then you add your own popupmenu
from your own popupmenu, you then can fire a inputbox to change the caption
that's the easy way, you could also extend the TcxGridTableCustomizationF
Geert_Gruwez:
I followed your instructions and it all works! The behavior that may have been disconcerting for the user is that a right-click on the header responds for the FocusedColumn and not the column that received the right click.
But "TcxGridColumnHeaderHitTes
Thanks for the help!
Business Accounts
Answer for Membership
by: rllibbyPosted on 2009-04-02 at 19:06:15ID: 24056163
I have done a couple of feature rich apps using the Quantum Grid, and I know exactly what your talking about.
I offer the same rename capability (as well as a few other functions like hide column, auto-size, etc) and I ended up wiring up a popup menu that is fired on the right mb click on the column header. The user, if he choses the rename, is then shown a dialog with the current caption displayed and can change it at that point. Attempting to handle this directly in the left mb down is a bad idea IMHO, as it will interfere with the built in sorting and dragging.
Hth,
Russell