Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:20:37+00:00 2026-06-15T12:20:37+00:00

I am using an Xceed datagrid and I am trying to change the RowSelectorPane

  • 0

I am using an Xceed datagrid and I am trying to change the RowSelectorPane background color. I tried to do this in the XAML, but it would give me a compiler error stating that it cannot create my datagrid control. Any advice would be greatly appreciated.

<xcdg:DataGridControl Background="Transparent" Name="dgControl" SelectionUnit="Cell" >
    <!--<xcdg:RowSelectorPane Background="Transparent" />-->
</xcdg:DataGridControl>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:20:38+00:00Added an answer on June 15, 2026 at 12:20 pm

    UPDATE 2: Browsing through the Xceed documentation and the Xceed fora I found out that you have to set the RowSelectorStyle on every DataRow.

         <Grid.Resources>            
            <Style x:Key="mySelectorStyle" TargetType="{x:Type xcdg:RowSelector}">
                <Setter Property="Background" Value="LightGreen"/>
                <Setter Property="BorderBrush" Value="DarkGreen"/>                
            </Style>
    
            <Style TargetType="{x:Type xcdg:DataRow}">
                <Setter Property="xcdg:RowSelector.RowSelectorStyle"
              Value="{StaticResource mySelectorStyle}" />
            </Style>
    
        </Grid.Resources>        
    

    Update 3
    You are right I missed the parts outside the rows section: the rowselectorpane itself. Unfortunately that is not styleable.
    There are 2 options:

    1. Rewrite the TableViewScrollViewer controltemplate as suggested on the Xceed forum. But this is tedious copy paste work of large parts of xaml and changing that little part you want to have it look your way.

    2. Or the following little hack:

      private void dataGridLoaded(object sender, RoutedEventArgs e)
      {
          var rowSelectorPane = TreeHelper.FindVisualChild<RowSelectorPane>(_dataGrid);
          if (rowSelectorPane != null)
          {
              rowSelectorPane.Background = Brushes.LightGreen;
          }
      }
      
      public static class TreeHelper
      {
          public static TChildItem FindVisualChild<TChildItem>(DependencyObject obj) where TChildItem : DependencyObject
          {
              for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj); i++)
              {
                  DependencyObject child = VisualTreeHelper.GetChild(obj, i);
      
                  if (child != null && child is TChildItem)
                      return (TChildItem)child;
      
                  TChildItem childOfChild = FindVisualChild<TChildItem>(child);
      
                  if (childOfChild != null)
                      return childOfChild;
              }
              return null;
          }
      }
      

    Xaml:
    <xcdg:DataGridControl ItemsSource="{Binding}" Name="_dataGrid" Loaded="dataGridLoaded" etc...>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Xceed data grid control and I am trying to change
I am using the groupby control on an xceed grid. I am trying to
I have developed a simple DB-editing app using Xceed's excellent DataGrid for WPF (UX
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using Python, I'm trying to connect to my AppEngine app's remote_api handler, but I
Using Rails 3, but I guess doesn't matter. I put this in the template
Using rubular.com as a guide, I am trying to get this expression to work
I am using the WPF toolkit messagebox now using something like this Xceed.Wpf.Toolkit.MessageBox.Show(MessageCenter.Show(12131011, true));
Using MonoTouch, I'm trying to make a custom view, so I can reuse this
I have some drag and drop functionality I am using in an xceed grid.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.