Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

cxgrid column customization

Posted on 2010-11-23
11
Medium Priority
?
5,299 Views
Last Modified: 2012-05-10
hi,
How do I show the popup window to drag and drop columns, on runtime?
0
Comment
Question by:danz67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 34197364
set customization to true
this will set enable a small button in the top left of the header
allowing you to hide/show columns

ColumnsMoving is to allow the columns to be reordered
cxgridOptions.png
0
 

Author Comment

by:danz67
ID: 34197731
I know this already, I am interested in seeing the window as the image attached, via runtime code
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 34197768
is it the grid popup menu / field chooser window you are referencing to ?
> add a cxGridPopupMenu
> set always fire on popup = true
> set grid to your grid

> right click on title column, field chooser
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:danz67
ID: 34197878
we're almost there, I saw that what I'm interested and Field Chooser, how do I open it at runtime?
0
 

Author Comment

by:danz67
ID: 34200270
no solution???
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 34201565
use the way i described
and a cxGridPopUpMenu
and in those properties set grid to your grid

setting AllwaysFireOnPopup can also help

at runtime you right click on a column header and then select field chooser
0
 

Author Comment

by:danz67
ID: 34203266
I had already done this and understood, it is possible to display "field chooser" directly from code inside a button and not by right-clicking on the column?
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 34203273
probably, i'd have to look in the source
hang on
0
 

Author Comment

by:danz67
ID: 34203366
ok, i wait, thanks
0
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 400 total points
ID: 34204123
uh, finally got it
with a little magic:
uses cxGridPopupMenu;

type
  TcxGridPopupMenuHelper = class(TcxGridPopupMenu) end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  TcxGridPopupMenuHelper(YourCxGridPopupMenu).GridOperationHelper.DoShowColumnCustomizing(True);
end;

Open in new window

0
 

Author Closing Comment

by:danz67
ID: 34204233
you really are a magician
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

647 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question