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 5850529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:09:11+00:00 2026-05-22T13:09:11+00:00

I am using wpf toolkit’s datagrid i want to marge a row for all

  • 0

I am using wpf toolkit’s datagrid i want to marge a row for all its columns when a property IsGroup is set as true. i want to use datatrigger insteed of ivalueconverter. i have done it with ivalueconverter.
One more thing is that i dont want to use the grouping functionality of datagrid. just want ted to add row at specific index no and make that row as single column. so will look like group name

<my:DataGrid.RowStyle>
                <Style TargetType="{x:Type my:DataGridRow}">
                    <Setter Property="Background" Value="White" />                      
                    <Setter Property="Background" Value="{Binding IsGroup, Converter={StaticResource rowhighlighter}}" />
                    <!--<Style.Triggers>
                        <DataTrigger Binding="{Binding IsGroup,UpdateSourceTrigger=PropertyChanged}" Value="True">
                            <Setter Property="Background" Value="YellowGreen"/>
                        </DataTrigger>
                    </Style.Triggers>-->
                </Style>
            </my:DataGrid.RowStyle>

this style datatrigger is not working for me where i am wrong.

  • 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-05-22T13:09:12+00:00Added an answer on May 22, 2026 at 1:09 pm

    Your qustion is that you want to add a row as a group header. But in the description of your question you state that you don’t want to use the grouping functionality of datagrid. Can you please elaborate what you want to do exactly, and why you believe you shouldn’t use the grouping functionality.
    By grouping functionality do you mean, the ability to expand collapse rows on some column ?
    You can declare a GroupStyle inside your datagrid:

    combine it with

    <CollectionViewSource.GroupDescriptions>
                        <PropertyGroupDescription PropertyName="Parent"/>
                    </CollectionViewSource.GroupDescriptions>
    

    Apart from what msdn provides on this subject, like introduction WPF

    I found this blog usefull in getting an understanding of datagrid:
    smoura’s WPF blog

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

Sidebar

Related Questions

Using WPF, I have a TreeView control that I want to set its ItemTemplate
I'm using the WPF toolkit datagrid, and I'd like to set the background color
I'm using the WPF Toolkit's DataGrid to display a set of search results. As
I am using the WPF toolkit datagrid to display some data and want to
I am using Wpf Toolkit DataGrid. Whenever I assign Itemssource to it, its first
I'm using the WPF toolkit datagrid. I have it set to SelectionUnit=Cell and SelectionMode=Extended
I am using WPF toolkit provided DataGrid control to display product list along with
I'm using the wpf toolkit datagrid to display an observable collection of AccountViewModels. The
I am using WPF toolkit Datagrid. I have a rowvalidationrule defined on this. to
I'm using the datagrid from the WPF Toolkit for 3.5. I have a need

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.