Questions tagged [rowdetailstemplate]

38 questions
15
votes
1 answer

Why Width="*" doesn't work for columns in DataGrid located in RowDetailsTemplate

If I set widths of DataGrid (located in RowDetailesTemplate) columns using "*" - columns scaling doesn't work ...
user1897059
  • 183
  • 2
  • 7
6
votes
1 answer

Unable to track SelectedItem of DataGrid inside RowDetailsTemplate of another Datagrid

I ran into this problem earlier today and am unable to find a solution. The SelectedItem of a DataGrid that's inside the RowDetailsTemplate of another DataGrid is not being set when I select a row inside the DataGrid that's inside the…
5
votes
1 answer

WPF DataGrid RowDetailsTemplate with Multiple Images (MVVM)

Goal To add multiple images in a DataGrid's RowDetails template using the MVVM standards. Background I have an inspection window with a DataGrid designed to hold a damaged item's description along with the initials of the inspector. What is more,…
Alex
  • 4,821
  • 16
  • 65
  • 106
3
votes
2 answers

WPF: DataGrid.RowDetailsTemplate: Only show details if single row is selected?

I'm using the RowDetailsTemplate in one of my DataGrids. This works fine so far, but looks really odd when the user wants to select multiple rows for specific operations. Is there a simple way to display the RowDetailsTemplate only if exactly only…
Ralf
  • 293
  • 5
  • 15
2
votes
3 answers

C# / WPF - DataGrid - Binding the Width of a TextBox in RowDetails to that of the containing DataGrid

My problem is similar to this one; DataGrid RowDetails Width problem Except I would like row details never to exceed the width of the columns it spans. |--0--|--1--|--2--|--3--|--4--| |---------Row-Details---------| I have tried…
CityView
  • 657
  • 9
  • 22
2
votes
2 answers
2
votes
1 answer

Can I databind to DataGridRow.DetailsVisibility?

I have a WPF datagrid control with a RowDetailsTemplate. I would like to be able to set a property on an object bound to the row to set whether that particular row should display details. So for example if I have a basic layout like below and the…
classicspage
  • 161
  • 1
  • 4
  • 12
1
vote
1 answer

How to show only RowDetails (not the row) when a DataGridRow is selected?

I got the following DataGrid:
user10705768
1
vote
1 answer

CaliburnMicro + RowDetailsTemplate: Details-View disappears

I have a GridView which lists all my Products. The first column is a "GridViewToggleRowDetailsColumn" which expands a Details-View when clicked. I use CaliburnMicro to load the Details-View like so:
1
vote
2 answers

Datagrid in Datagrid Row Template

Can't bind collection property to data grid row template
Alex Wyler
  • 65
  • 8
1
vote
1 answer

WPF MVVM DataGrid RowDetails with different ItemsSource

I have three DataGrids set up as individual UserControls with each ItemsSource bound to a different DependencyProperty in my ViewModel. When a row is selected in the first DataGrid, the other two populate with information relevant to the selected…
GDiff94
  • 137
  • 1
  • 2
  • 8
1
vote
1 answer

Bug in WPF DataGrid after upgrading to .NET 4.0

Situation is as follows: A DataGrid has a RowDetailsTemplate, which contains another DataGrid (the subgrid). If you add a DataGridTemplateColumn which contains an EventHandler, a NullReferenceException is thrown by PresentationFramework.dll. This…
RoelF
  • 7,483
  • 5
  • 44
  • 67
1
vote
1 answer

In WPF and XAML, how can I get the row detail's column to change dynamically to align under the parent row after skipping a number of columns?

I have got my model to display like below: What I am trying to achieve is that instead of having the row details show up the way they do by default, I want them to be displayed aligned to the parent grid columns.I want the details grid to skip the…
haku
  • 4,105
  • 7
  • 38
  • 63
1
vote
1 answer

How to position Silverlight RowDetailsTemplate above its corresponding row?

When you create a RowDetailsTemplate in a Silverlight grid you can specify a template for row details that is shown directly below the row when it is selected. The details I have for one of my datagrids would look a lot better immediately before…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
1
vote
1 answer
1
2 3