Questions tagged [rowdetailstemplate]

38 questions
1
vote
2 answers

Access a Datagrid in a Rowdetailtemplate

I've created a Datagrid in a Datagrid.RowDetailsTemplate and I would like use Items.refresh on it when I click on a button created outside of my Datagrid. I can't find a way to access this function for datagrid_Detail with the button…
Artcha
  • 11
  • 2
1
vote
1 answer

Variable in stackpanel inside of DataGrid-RowDetailsTemplate is not recognize

I have stack panel inside DataGrid.RowDetailsTemplate. In the stack panel I have text Box and button. The function of the button in the c# code behind tried to use the value from the text box but there is an error : "The name 'toCheck' does not…
yuval dayn
  • 13
  • 4
1
vote
0 answers

RowDetailsTemplateSelector based on data value won't update

I have a datagrid with a RowDetailsTemplateSelector that uses a value in the bound data object to determine which datatemplate to use. The issue is that when I change and even commit the value of the value, the template doesn't switch to the…
Lance
  • 611
  • 6
  • 28
1
vote
2 answers

Binding datagrid to two different classes with lists?

It is my first question on StackOverflow so I hope I am doing nothing wrong ! Sorry if it is the case ! I need some help because I can not find the solution of my problem. Of course I have searched everywhere on the web but I can not find it (can…
Morgane
  • 123
  • 2
  • 13
1
vote
1 answer

Limit activation of DataGrid.RowDetailsTemplate to certain columns

Have a DataGrid with multiple columns. Would like to limit activation of the DataGrid.RowDetailsTemplate to certain columns. Actually I just want to exclude one column from activating the DataGrid.RowDetailsTemplate.
paparazzo
  • 44,497
  • 23
  • 105
  • 176
1
vote
2 answers

WPF DataGrid with a DataGrid in RowDetailsTemplate doesn't get verticall scrollbar

I have a DataGrid with RowDetailsTemplate that contains a DataGrid. The parent grid is placed in it's own row. The row is defined as Usually this means the row will take the REST of the available hight and initialy it…
Keren
  • 81
  • 2
  • 10
1
vote
1 answer

WPF4 DataGrid Delete Rows in RowDetailsTemplate's DataGrid

I had a WPF4 DataGrid Control which contains another DataGrid Control in it's RowDetailsTemplate. I add a PreviewKeyDown event on both DataGrid control and monitor they're Keyboard operations. If press Delete key on keyboard, I'll delete the…
Alvin
  • 83
  • 1
  • 5
1
vote
0 answers

need to select or highlight alike rows in datagrid with RowDetailsTemplate--mvvm

I have datagrid that have rowdetails. My rows can be duplicated. I want to select all rows that are alike. how can I achieve that. I'm using mvvm pattern. I bind the selectedItem to the same property in my view model, but it does not work. Here's…
MsBugKiller
  • 813
  • 1
  • 7
  • 12
0
votes
1 answer

Conditionally display Row Detail

What if the row has no details? I am using WPF DataGrid for displaying data with a row details templete. I do not want row details if the user has no address details. I just want row details for only those users that have address details.
Uzair Ch
  • 13
  • 4
0
votes
0 answers

C# WPF DataGrid RowDetails not updating using MVVM Caliburn.Micro

Trying to update a "Details" DataGrid RowDetailsTemplate in a "People" DataGrid(Doing some crazy Inception stuff!). The collection is being updated correctly with NotifyOfPropertyChange(), but it doesn't seem to update the row in the DataGrid. The…
Corey
  • 835
  • 1
  • 9
  • 32
0
votes
1 answer

c# How to find UIElements in RowDetailsTemplate

I need to build the UIElementCollection DetailsElement, after initializing the UserControl. My problem lies in the FindName. I can't figure out how to use the TemplatedParent. Which element is that? an how can I refer to it in CB? So DetailsElements…
Erik
  • 894
  • 1
  • 8
  • 25
0
votes
1 answer

Hide/Collapse Image in RowDetailsTemplate

I have a WPF/XAML DataGrid with a RowDetailsTemplate. When a row is selected, the Details with an Image and some text are shown. So far so good. Plan is to have the Image visible or invisible (hidden or collapsed doesn't matter) depending on data…
doomi
  • 53
  • 7
0
votes
1 answer

In WPF, how do I bind in the DataGrid.RowDetailsTemplate?

I have a DataGrid which is bound to an ObservableCollection of a custom class. The collection is a property in a ViewModel, and the grid works fine, including with changes to the collection. I want to use the RowDetailsTemplate to display two…
GilShalit
  • 6,175
  • 9
  • 47
  • 68
0
votes
1 answer

CaliburnMicro Binding View inside RadGridView.RowDetailsTemplate

I have a RadGridView with a GridViewToggleRowDetailsColumn, which can expand a selected item and show more Details. I want to use CaliburnMicro to Display the DetailsView, so I add a property of the DetailsViewModel to my "MainViewModel" and add a…