Odd. I use this trick in number of different places, and had done so since GWT 1.3 (in fact, I learned the style trick from this list and, in part, from the old Mail sample). It's been tested with Firefox, IE, and Safari.
When my cells have been shifted it's because I did not count or order my columns correctly. You might try posting a bit of your code. On Jul 8, 11:38 am, Magnus <[email protected]> wrote: > Hm, this doesn't work for me. > > All the cells are shifted in their horizontal positions... > > With your method the table does not behave as if the column width were > 0px. > > I wonder how to deal with this stuff... > > Magnus > > On Jul 7, 7:47 pm, Thad <[email protected]> wrote: > > > 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.
