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_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.EditItem)
GridDataItem item = e.Item
as
GridDataItem;
item[
"ID"
].ForeColor = System.Drawing.Color.Red;
}
else
(e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.EditItem)
].ForeColor = System.Drawing.Color.Yellow;
(e.Item
is
GridDataItem)
(item.ItemIndex % 2 == 0)