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

Setting the row with the indicator

3 Answers 234 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zvi
Top achievements
Rank 1
Zvi asked on 14 Mar 2018, 03:26 AM

Hello,

I'm using RadGridView with RowIndicatorVisibility="Visible"

How can I set the row that is marked with the indicator ?

Thank you,

Zvika 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 16 Mar 2018, 12:58 PM
Hello Zvi,

You can set the CurrentItem property of the RadGridView. Here is an example of how that might look:
this.gridView.CurrentItem = this.gridView.Items[2];

Additionally, you can check out the CurrentItem, SelectedItem & SelectedItems article in our documentation if you have not done so already.

Hope this helps. 

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Zvi
Top achievements
Rank 1
answered on 17 Mar 2018, 03:53 AM

Hi Vladimir,

Thank you for your reply. It works !. 

The color of the column header is black compared to other columns.

Can I change it ?

Best regards,

Zvika 

0
Vladimir Stoyanov
Telerik team
answered on 21 Mar 2018, 02:46 PM
Hello Zvi,

Thank you for the attached picture.

Although I am uncertain as to the particular implementation on your side, in general in order to style the header of a column, you can use the HeaderCellStyle property of that column. Here is an example of how that might look. 
<Style x:Key="HeaderCellStyle" TargetType="telerik:GridViewHeaderCell">
            <Setter Property="Background" Value="Red" />
</Style>
 
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>

Don't hesitate to contact us again if you have any further questions.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Zvi
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Zvi
Top achievements
Rank 1
Share this question
or