How can I convert BindingList to List ?
Try this
List<int> list = yourBindingList.ToList();
int is your type =)
If you're using .NET 2.0, then this is the solution:
public List<T> ToList()
{
return new List<T>(this); // this - is a BindingList compatible object
}
List list = yourBindingList.Cast().ToList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With