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

[Solved] How to change the RowDetailsStyle

1 Answer 164 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Heather
Top achievements
Rank 1
Heather asked on 22 Sep 2009, 03:43 PM
I'm using the grid view and showing details similar to the demo but my rowdetail is editable.  How can I gain control over the forecolor of the controls?  If I use a normal textbox in my details datatemplate the forecolor is black and the backcolor is white.  When I use a radnumeric control the forecolor is white unless the focus is on the control in which case the forecolor is white (and the background is black).  I tried creating a custom RowDetailStyle but cannot figure out how to get control of the properties I need.

v2009.2.911.1030

1 Answer, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 25 Sep 2009, 10:49 AM
Hello Heather,

Attached I am sending you a sample application which uses RadNumericUpDown control in row details.
The problem with the Foreground you are experiencing is due to inheritance of the foreground property from the row details to the numeric up down control. Setting Foreground="Black" for each numeric control did the trick.

Greetings,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Heather
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Share this question
or