I have an EF source that I'm binding to a DataGridView. The binding is happening programatically. However, the sorting is not working.
So I decided to mess with some code and create an Extension Method, but it seems like its still not working.
public static class BindingListEntityExtension
{
public static BindingList<T> ToBindingList<T>(this IEnumerable<T> entities)
{
BindingList<T> rtn = new BindingList<T>();
foreach (T obj in entities)
{
rtn.Add(obj);
}
return rtn;
}
}
Any ideas?