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

Change the font color of raggrid on rowselected

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sho
Top achievements
Rank 1
sho asked on 29 Aug 2011, 07:37 AM
Hi,

My radgrid has skin = "Black" I want to change the font color of the item when a row is selected. How to do?

Thanks,
Aradhya

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 29 Aug 2011, 08:30 AM
Hello Aradhya,

You can achieve this by setting CSS class for SelectedItemStyle as shown below.

aspx:
<telerik:RadGrid ID="RadGrid1"  Skin="Black" runat="server" DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true">
 <SelectedItemStyle CssClass="Selected"/>
  . . .
</telerik:RadGrid>

CSS:
<style type="text/css">
 .Selected
 {
 color:Red !important;
 }
</style>

Thanks,
Shinu.
Tags
General Discussions
Asked by
sho
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or