PDA

View Full Version : change selection on a grid



eugenparaschiv
1 Sep 2008, 10:47 PM
I have a table in my project, binded to some other components. Each time the selection is changed in a table, if the table has a binder, then selectionChanged is called and so this is a hook for the selection change functionality.
Now I would like to use a Grid instead of a table, but the Binder is gone (Grid doesn't use binder); so what do I do, meaning where is the selection listener and what happens when the selection is changed?
I have found GridSelectionModel but do not know how to use it. So, does anyone have a simple example of how to do this? Thanks.

eugenparaschiv
2 Sep 2008, 2:25 AM
I figured it out
gird.setSelectionModel(null)