PDA

View Full Version : DataGrid: Need to Hide a Column!


Lienne
08-31-2005, 01:44 AM
I need to have a column in the DataGrid which is not visible to the user, but that I can pull info from when the user clicks on it.

Any ideas?

logictude
08-31-2005, 02:41 AM
I tied my DataGrid to a DataSet, which contained the full schema, hidden columns and all, and added my DataGridColumns at run-time.

Lienne
08-31-2005, 11:54 PM
huh...thanks for the reply. I don't really know what that means, but figured out a workaround after posting this.

For anyone who's interested in an alternate way, my dataProvider was from my LSO, and I created the columns at run time. I then set the width of that column to '0' and created a cellRenderer instance for that column. This cellRenderer processed the contents as if it were trying to attach an image (found this online somewhere) and it output nothing!

Kinda crude (your way is probably better) but it works.