Hi Clay,
Thanks for such quick reply.The function for finding parentrow is helpful. But still I will need to traverse through the child table of grid.
I dont set the colors of grid on basis of current cell value but There is one column Called ''Unread'' in child table. That contains boolean value. If the data in that column is true I want to change the color of row as well as parent row.Could u pls help?
Umangi
>In a griddataboundgrid, you cannot just set a row style. You have to handle PrepareViewStyleInfo and in the handler, set the colors dynamically on demand. There are a couple of KBs on this.
>
>Here is a sample that uses PrepareViewStyleInfo and CurrentCellCommitChanges to do what you described. If you type a color name like red or blue in the Name column of the grid, the backcilor of the row and its parent will change to that color. The sample stores the backColors in a Hashtable with a key based on the primary id for the row (something that does not change). The change is checked in the CurrentCellCommitChanges event.
>
>
>
>
HierarchyColorRows_3834.zip
>
>