I have a Grid. When I click in a cell, I get the value and change the backcolor of the cell.
But when I click in a another cell the backcolor of the old cell should change to the old color. But I don't now how. I tried following code.
But when I click in a another cell the backcolor of the old cell should change to the old color. But I don't now how. I tried following code.
If Not Session("old_cell") Is Nothing Then
Dim _tmp_grid_cell As GridTableCell
_tmp_grid_cell =
DirectCast(DirectCast(Session("old_cell"), System.Object), Telerik.Web.UI.GridTableCell)
_tmp_grid_cell.BackColor = Drawing.Color.Empty
End If
Session(
"old_cell") = DirectCast(DirectCast(sender.parent, System.Object), Telerik.Web.UI.GridTableCell)
'Change color of new cell
DirectCast(DirectCast(sender.parent, System.Object), Telerik.Web.UI.GridTableCell).BackColor = Drawing.Color.Orange
Thank you for your help.