troubleshooting Question

How to hide a column in a Flash Datagrid?

Avatar of Thread7
Thread7 asked on
Web Graphics SoftwareAdobe FlashWeb Applications
3 Comments1 Solution2080 ViewsLast Modified:
I have a datagrid with 4 columns like name, address, etc. One column is a 5 digit employee ID that I don't want people to see. But I want to be able to retrieve this ID in my actionscript if I need it.
I thought I might just be able to set a column width of 0. But that doesn't work. It forces the column to be a few pixels wide at least.

Here is some various code I've tried with no luck.
theDataGrid.columns[4].width = 0;
theDataGrid.getColumnAt(4).visible = false;
theDataGrid.getColumnAt(4)._visible = false;
theDataGrid.columns[4].headerText = "";

Instead of hiding maybe can I attach it to the array without showing it?  I don't see a way.
I must note that I am using a third party "Drag and Drop DataGrid Component" from Drumbeatinsight.  However their documentation says that this component extends the Macromedia datagrid component so all those functions should be accessible to me.
Adobe Flash.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros