Color GroupHeaderRow to match ChildRow color

3 replies. Last post: July 2, 2012 1:42 AM by Bernard Xiang
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Randy GentheMember

I have a nonhierarchical WebGrid used for realtime data display.

There are FormatConditions determining the background and foreground colors for the "Record" rows.

When grouping is in effect, and a new "Record" row is added, I need to color its corresponding GroupHeaderRow to match its color - as determined by the FormatConditions.

I have been trying to do this server-side beneath the OnInitializeRow handler, at the time the GroupHeaderRow rows are being initialized.  I can locate the new child in one of the groups without any problem, but it does not appear that its FormatConditions have been applied to its Style yet.

Once this problem is solved I also need the GroupHeaderRow style to persist until either the group is expanded or a new "Record" row is added to the group.

Anyone?  Thanks.

All times are GMT -5. The time now is 12:02 AM.
Previous Next