3 Answers, 1 is accepted
0
Accepted
Hello Zvi,
You can set the CurrentItem property of the RadGridView. Here is an example of how that might look:
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
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
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.
Don't hesitate to contact us again if you have any further questions.
Regards,
Vladimir Stoyanov
Progress Telerik
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.