Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e) {
int
i = 0;
foreach
(GridGroupHeaderItem groupHeader
in
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))
//accessing header
{
i++;
GridItem[] children = groupHeader.GetChildItems();
//accessing child items
(GridDataItem child
children)
GridDataItem childItem = child
as
GridDataItem;
if
(i % 2 == 0)
childItem.BackColor = System.Drawing.Color.Red;
}
else
childItem.BackColor = System.Drawing.Color.Black;
} } } }