Setting the row with the indicator

4 posts, 1 answers
  1. Zvi
    Zvi avatar
    22 posts
    Member since:
    Sep 2014

    Posted 13 Mar Link to this post

    Hello,

    I'm using RadGridView with RowIndicatorVisibility="Visible"

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

    Thank you,

    Zvika 

     

  2. Answer
    Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    137 posts

    Posted 16 Mar Link to this post

    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.
  3. Zvi
    Zvi avatar
    22 posts
    Member since:
    Sep 2014

    Posted 16 Mar in reply to Vladimir Stoyanov Link to this post

    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 

  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    137 posts

    Posted 21 Mar Link to this post

    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.
Back to Top