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
this
.radGridView1.ViewCellFormatting +=
new
Telerik.WinControls.UI.CellFormattingEventHandler(
.radGridView1_ViewCellFormatting);
private
void
radGridView1_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.CellElement.ColumnInfo !=
null
)
(e.CellElement.ColumnInfo.Name ==
"Name"
e.CellElement.BackColor = Color.LightBlue;
e.CellElement.NumberOfColors = 1;
e.CellElement.DrawFill =
true
;
}
else
e.CellElement.ResetValue(LightVisualElement.BackColorProperty);
e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty);
e.CellElement.ResetValue(LightVisualElement.DrawFillProperty);