Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] New topic in forum Nebula, called Cell selection on Grid, by Harshini Garikiparthi

Title: Eclipse Community Forums
Subject: Cell selection on Grid Author: Harshini Garikiparthi Date: Wed, 13 January 2016 10:57
Hi,
I have a scenario where on Mouse double click event a single cell on the Grid must be selected and on normal click the whole row needs to be selected
Please refer the code below
grid.addMouseListener(new MouseListener() {

public void mouseDoubleClick(MouseEvent e) {
grid.setCellSelectionEnabled(true);

}
}
and later
grid.setCellSelectionEnabled(false);

so that on normal click the row gets selected. But the behaviour defers , the Row does not get selected. Please suggest what can be done.
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top