Browse by Tags
All Tags » MasterDetail (RSS)
Showing page 1 of 2 (16 total posts)
-
Hi Nathan,In order to delete DataItems from the Datagrid you should set
the IsDeleteCommandEnabled property on the DataGrid to True. However, to delete
only Details' items you should catch the DeletingSelectedItems event in code
behind and cancel deletion if the CurrentContext is a master
one(ParentDataGridContext will be null as a master ...
-
I have a master/detail grid that I want to be able to delete from from the detail table, but not the master table. I set IsDeleteCommandEnabled to true on the DetailConfiguration, and to false on the master grid. However, the delete key doesn't work. When I set IsDeleteCommandEnabled on the master grid, it starts working, but ...
-
I've just started working on getting a detail grid for an Xceed datagrid instance. I've got it working for the first time a master row is expanded, but any row thereafter just gets blank rows where the detail rows should be.
Here's the XAML:
<DataGrid:DataGridCollectionViewSource x:Key=''viewSource'' Source=''{Binding ...
-
Hi,
I am trying to create a grid with recursive details and it works when I set AutoCreateDetailDescriptions to true just fine. However, my problem is that I also need unbound columns on each level. I know it can be achieved by creating the detailconfigurations manualy in the code behind but it seems like a bad improvisation. Is there anyway to ...
-
Hi,
I have Master Detail grid. Requirement is to show data in a combo box in Detail Grid column.
How do I add combo box? Any samples?
Below is my code -
DataGridCollectionView theView = new DataGridCollectionView(roomsListNew, typeof(ExchangeRoomResource), false, false);
theView.DetailDescriptions.Add(new ...
-
Hi,
I am getting this error when I ran the sample application for MasterDetail -
{''Cannot create instance of 'SumFunction' defined in assembly 'Xceed.Wpf.DataGrid, Version=3.1.9117.10090, Culture=neutral, PublicKeyToken=ba83ff368b7563c6'. Exception has been thrown by the target of an invocation. Error at object ...
-
Thanks for your reply.
Your workaround gave me an idea that is currently working. It seemed to me that a new ''DataGridDetailDescription'' is created for each parent row, as opposed to using this object in a static way (no static methods). So, I created my own workaround by changing my implementation of the DataGridDescription class ...
-
I had already implemented a DataGridDetailDescription. It is working in the sense that I can expand any parent row and the child objects are displayed in child rows in a subgrid. See the code below: (modified slightly to rename the names of my variables)
class ParentDetail : ...
-
I'm not sure how this post helped Henry, as it is not working for me.
I've got the same exact problem. I need to access the parent object when the InsertionRow is used, in order to properly the new child object. The parent object is absolutely essential to properly creating the child object.
I created the above event ...
-
Could you please post a code sample of this? I can't make any sense of what objects you are talking about.
I've read all of the posts on this forum filed under the Master/Detail tag, and have yet to be able to find a solution to my problem.
The problem is that I have a working Master/Detail grid set up and running. When a new ...
1
|
|
|
|