I have a hierarchy grid and I want the master table to display a different color background if the underlying table has records. What is the best method for applying the formatting?
And make some minor modifictions to change the color on that specific Item.
Or you make your datasource (Sql query) to look up and put the number of children for each item in a seperate hidden column and then you can simply handle the change of the color in the ItemDataBind event.
An example of such SQL query in parent/child relation could be like this.