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

[Solved] SelectedItem set to Transparent

1 Answer 99 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.
Matt
Top achievements
Rank 1
Matt asked on 06 Dec 2010, 10:36 PM
Hi,

I'm trying to set my grid's SelectedItem to transparent.  The project I'm working on has a predefined style for a GridView's SelectedItem and I can't figure out how to override the property on my .xaml page (really I can't find the property to access it).  Any help would be appreciated.

Thanks,
Matt

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Dec 2010, 10:09 AM
Hello Matt,

Considering the structure of a GridViewRow, if you need to access the selectedItem's background you need to edit the template of a GridViewRow. There you may find a Border named Background_Selected which represents the outer border of a row and its inner border. Change the brushes you need to achieve the desired result. However the default background of a row is white colored, and  the background of a RadGridView too. What color do you expect to see as RadGridView's background if the selected GridViewRow will have the Transparent background?


Please see the attached example that demonstrates the approach above and if you need any further assistance let me know. 

Regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Matt
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or