Hi James,
Thank you for your patience.
To achieve this behaviour you need to derive the BindingList class and Override RemoveItem method. In RemoveItem method, you need to store the deleted records information in a new BindingList. You can access these deleted record information using GetDeletedList method. Here are the code snippet.
public class MyBindingList : BindingList
{
BindingList list = new BindingList();
protected override void RemoveItem(int index)
{
list.Add(this[index]);
Console.WriteLine(index.ToString());
base.RemoveItem(index);
}
//To get the deleted record list.
public BindingList GetDeletedList()
{
return list;
}
}
private void button1_Click(object sender, EventArgs e)
{
BindingList list = bl.GetDeletedList();
foreach (CustomClass obj in list)
{
Console.WriteLine(obj.ID);
}
}
Here is the sample code which implements this task.
http://websamples.syncfusion.com/samples/Grid.Windows/I73051/main.htmPlease let me know if this helps.
Best Regards,
Srirajan