Sergey
Sergey

Reputation: 11908

Add click listener to gwt's Grid row

Is it possible to add a ClickHandler to the whole row of gwt's Grid object? It is possible to add a ClickHandler to the whole grid but how can I determine which exactly row was clicked?

Upvotes: 2

Views: 1353

Answers (1)

John3136
John3136

Reputation: 29265

Depending on GWT version, you might be able to use:

public HTMLTable.Cell getCellForEvent(ClickEvent event)

The Cell has a getRowIndex() method.

Upvotes: 2

Related Questions