This content has been marked as final. Show 3 replies
That is not easily possible. Probably not impossible, but difficult. I'm assuming you are talking about the grid lines (horizontal or vertical - the lines separating cells)?
No, I think he's talking about the rows because you want certain records/rows to stand out from the rest, no matter how they're sorted. I could imagine a situation where you would require records to be grouped, say by state, and the different colored row wouldn't be a record, but a header for the state.
Just subclass DataGrid and override drawRowBackground() and check the passed dataIndex to see if this is the data item you want a different background for. The docs even mention this as a use case:
dataIndex:int — The index of the item for that row in the data provider. This can be used to color the 10th item differently for example.