Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF DataGrid - Stretch Row Details Vertically

WPF DataGrid - Stretch Row Details Vertically

Scheduled Pinned Locked Moved WPF
wpfquestioncsharpcsswcf
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I've got Row Details section in a DataGrid. The DataGrid's width is set to 1500, yet the row details content stretches off the right side of the grid. Here's all the XAML. [Here's a screen shot](https://1drv.ms/u/s!AjBmoYAYz\_v2hAfyFayYe\_szmYci?e=ULiK1M) How do I make the Row Details content wrap?

                            <Style.Triggers>
                                        <DataTrigger Binding="{Binding Status}" Value="Removed">
                                            <Setter Property="FontStyle" Value="Italic" />
                                            <Setter Property="Foreground" Value="LightGray" />
                                        </DataTrigger>
                                    </Style.Triggers>
                                
                            
    
                            <Setter Property="BorderBrush" Value="SteelBlue" />
                                    <Setter Property="BorderThickness" Value="0,0,0,1" />
                                    <Setter Property="Height" Value="{x:Static sys:Double.NaN}"/>
                                
                            
                            
                            
                                
    
                                    <Setter Property="IsReadOnly" Value="True" />
                                    <Style.Triggers</x-turndown>
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups