I do this in a number of places in my application. Use your style
sheet:
DoubleClickTable rootTable = new DoubleClickTable(); // my class that
extends FlexTable
HTMLTable.CellFormatter cellFormatter = rootTable.getCellFormatter();
...
rootTable.setText(row, ROWID_COL, record.getAttribute("rowid"));
// Set other fields.
rootTable.getRowFormatter().setStyleName(row, "unselectedRow"); //
style the row
cellFormatter.setStyleName(row, ROWID_COL, "hidden-Column"); // hide
the cell
In the CSS,
.hidden-Column {
display: none;
}
On Jul 7, 12:54 pm, Magnus <[email protected]> wrote:
> Hi,
>
> I would like to use a FlexTable as a list of users and I need to
> attach a user id to each row somehow, in order to identify the user
> when a row is selected.
>
> I tried to use a column of width "0px", but this column is visible...
>
> How would you do that?
>
> Thanks
> Magnus
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.