After Sort events

After sorting, how can i set the row color?

Actually i want to set the alternate row color.While loading of the page the row color is coming perfectly.

But after sort, there is a mismath in the row colors.

Please help me

The simplest way is the next


but with latest version of grid, it must updates automatically ( and works in such manner in all local samples )