We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Making all columns visible in Delphi Grid

Norm-al
Norm-al asked
on
Medium Priority
1,743 Views
Last Modified: 2012-05-11
Hi everyone.

I'm trying to program a quick way to make all of the columns in a grid visible, rather than the user having to individually click each of the checkboxes in the ColumnsQuickCustomization drop down. I know this can be done by individually calling each of the columns, but I would like to find a way around this since many of the grids have quite a large number of columns--plus I would be able to drop it into any grid with relatively little coding. I was thinking something along the lines of:

if TcxGrid.ColumnProperty.Visible := False then TcxGrid.ColumnProperty.Visible := True;

Would this be possible, or am I going about this the wrong way?
Comment
Watch Question

Oracle dba
CERTIFIED EXPERT
Top Expert 2009
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Geert GOracle dba
CERTIFIED EXPERT
Top Expert 2009

Commented:
nice fromer,
but a little complex ... no ?

is this part of a larger piece of code ?

Commented:
I can see the
unit cxGrid,
unit cxGridCustomTableView,
etc...

The codes after "So I will suggest functions like below..." are written by me..
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.