4 Answers, 1 is accepted
0
Hello George,
The following link could give you an idea:
Selecting cells
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The following link could give you an idea:
Selecting cells
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Mike
Top achievements
Rank 1
answered on 10 Sep 2008, 02:20 PM
But I want to change the color in the code behind on ItemDataBound
0
Accepted

Shinu
Top achievements
Rank 2
answered on 10 Sep 2008, 02:24 PM
Hello George,
You can try out the following code to set the color for an item.
cs:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
{ |
if (e.Item is GridDataItem) |
{ |
GridDataItem dataItem = (GridDataItem)e.Item; |
if (dataItem["Category"].Text == "Text") |
{ |
dataItem["Category"].BackColor = System.Drawing.Color.Red; |
} |
} |
} |
Shinu
0

Mike
Top achievements
Rank 1
answered on 10 Sep 2008, 02:27 PM
That's the Ticket!!!
Thank you Shinu!
Thank you Shinu!