PDA

View Full Version : Highlighting entire row even when GridCellRenderer is used



gnaigaonkar
19 Jun 2009, 12:12 PM
I am using an EditorGrid and since I wanted to add buttons to one of the columns used a GridCellRenderer. But since am using this GridCellRenderer, whenever I move the mouse over the grids rows, only that particular cell gets highlighted instead of entire row getting highlighted.
I guess it is because am using the GridCellRenderer. But I need to highlight the row even when am using it. Lemme know if someone can help.

gnaigaonkar
22 Jun 2009, 10:05 AM
I got over the problem.

I was using an EditorGrid instead of Simple Grid. In a Editor Grid, the Selection Model is Cell Selection whereas in Simple Grid its Row Selection. So I just switched over to Simple Grid and that solved the problem.

Posted this in case anyone faces a similar problem.

P.S.: Buttons and other components can be added to Simple Grid too