Solved

cxgrid column customization

Posted on 2010-11-23
11
4,915 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
  • 6
  • 5
11 Comments
 
LVL 36

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 36

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
 

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 36

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 36

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 36

Accepted Solution

by:
Geert Gruwez earned 100 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now