PDA

View Full Version : gxt 4.0 how to set background color to entire row of a grid



ctrl1
1 Jun 2016, 12:39 AM
how to set background color to entire row of a grid?now i set background color to all cell of the row,but this have some question.
under is my code
int index = dataSet.getRowSetIndex(rowSet);
for (int j = 0; j < getColumnModel().getColumnCount(); j++) {
if(getView().getCell(index, j) != null) {
getView().getCell(index, j).getStyle().setBackgroundColor(color);
}
}

if the cell is renderercell.then value changed,backgroundcolor disappear.

someone has the same question?help me .thankyou!!
Impatient critical
disappear