Home Forums WPF controls Xceed DataGrid for WPF Help with a Child Relation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26653 |

    Hello,

    Could someone help me with a Child Relation problem?
    This line of code works fine….but if I try to have the Child relation point to a Daveview I am having problems.

    table_Customer_Main.ChildRelations.Add(new DataRelation(“Orders”, table_Customer_Main.Columns[“ID”], table_Orders.Columns[“ID”]));

    How do you do it with a child relation….here is the code I have been messing around with…with no luck so far.

    dataview_orders = new DataView(dataset_nds_sites.Tables[“Placed_Orders”]);
    dataview_orders.RowFilter = “Task_Status < 1”;
    .
    .
    .
    table_Customer_Main.ChildRelations.Add(new DataRelation(“Orders”, table_Customer_Main.Columns[“ID”], dataview_orders.?????);

    In the line of code above if I place
    dataview_orders.Table.Columns[“ID”] in place of “dataview_orders.?????” it then doesn’t use the filter I specified above.

    How can I do this?

    Imported from legacy forums. Posted by Dave (had 1893 views)

    User (Old forums)
    Member
    Post count: 23064

    If this is impossible….

    Then is it possible to Filter a ChildRelation inside the dataGrid?

    Imported from legacy forums. Posted by Dave (had 2843 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.