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
void
radGridView1_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.CellElement
is
GridHeaderCellElement && e.CellElement.Tag !=
null
&& e.CellElement.Tag ==
"IamHoveredCell"
)
e.CellElement.BackColor = Color.Red;
e.CellElement.GradientStyle = GradientStyles.Solid;
e.CellElement.DrawFill =
true
;
}
else
e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
GridHeaderCellElement lastHoveredCell;
radGridView1_MouseMove(
sender, MouseEventArgs e)
(lastHoveredCell !=
lastHoveredCell.Tag =
lastHoveredCell.UpdateInfo();
GridHeaderCellElement cellElement = radGridView1.ElementTree.GetElementAtPoint(e.Location)
as
GridHeaderCellElement;
(cellElement !=
cellElement.Tag =
lastHoveredCell = cellElement;
cellElement.UpdateInfo();