mcs26
asked on
C# WPF Datagrid
Hi,
I have a WPF application that contains a datagrid. The datagrid is binded to my object "OrderList" (please see the code block below).
I need to know when a user deletes a row in the datagrid. I then intend to move this deleted row to my other List "OrderListFailed" which is bound to a different datagrid.
As always any help would be great.
Thanks,
M
I have a WPF application that contains a datagrid. The datagrid is binded to my object "OrderList" (please see the code block below).
I need to know when a user deletes a row in the datagrid. I then intend to move this deleted row to my other List "OrderListFailed" which is bound to a different datagrid.
As always any help would be great.
Thanks,
M
public class OrderBlock
{
public string BlockID { get; set; }
public int NumFails { get; set; }
public List<Orders> OrderList { get; set; }
public List<Orders> OrderListFailed { get; set; }
}
public class Orders
{
public bool Failed { get; set; }
public string Name { get; set; }
public string ID { get; set; }
public string Side { get; set; }
public double Amount { get; set; }
public bool GoodOrder { get; set; }
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.