Here is source code I cited from GWT mail example. You can find this
example from http://www.gwtorm.com/gwtMail.jsp that include RPC-
database layer code.
public class MailList extends Composite implements ClickHandler {
public MailList() {
table.addClickHandler(this);
}
public void onClick(ClickEvent event) {
// Select the row that was clicked (-1 to account for header
row).
Cell cell = table.getCellForEvent(event);
if (cell != null) {
int row = cell.getRowIndex();
}
}
}
Jim
http://www.gwtorm.com - GWT ORM
http://code.google.com/p/dreamsource-orm/downloads/list
On Jun 18, 12:04 am, Suren <[email protected]> wrote:
> Hi All,
>
> I am using a Grid, in which I want to implement row Selection style.
>
> Currently, I am using rowformatter to apply a style. But thats not
> having the expeceted behavior.
>
> I want to select that entire row, when user clicks on any cell in a
> Grid. Row selection should remain there, even if user clicks or double
> clicks that cell.
>
> Any help would be appreciated
>
> Thanks
> Suren
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---