This is a migrated thread and some comments may be shown as answers.

[Solved] Selected Cell Backcolor

1 Answer 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 27 Apr 2009, 02:12 PM
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.

 

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.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Apr 2009, 02:12 PM
Hi Tommy,

Could you please elaborate a little bit on your scenario?  
It will be best if you open a formal support ticket and send us a small working project with reproduced this erroneous behavior.
It would help us to provide accurate solution for this issue.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Tommy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or