Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Grid - get Column Header Name on Row Selection
Hello,
Example:
User clicks on an item within the grid. How do you get the column name that selection is from?
Read through the book of Vaadin and the API, but could not find anything.
https://vaadin.com/api/com/vaadin/event/ItemClickEvent.html
Thanks!
~Shaun
Yes, from the ItemClickEvent you can get the column (property) ID with getPropertyId().
Selection as such is for the entire row, not a specific column, but the ItemClickEvent knows where you've clicked. Consequently, when using keyboard, it's possible to select rows (items), but it's currently not possible to determine which column was focused when some key was pressed.
Awesome thank you! Yeah I was making it way too complicated.