Hello,
I'm looking for a grid which will work well with Entity Framework, and am attempting to evaluate your IGrid control.
I attempted to populate it with data in VS2010, .Net 4. Entity Framework 5, Windows 7 machine.
The following methods were attempted:
Using context = New TestEntities
Me.IGrid1.FillWithData(context.Customers)
End Using
The Type is DbSet(Of T). I didn't really expect this one to work.
Using context = New TestEntities
context.Customers.Load()
Me.IGrid1.FillWithData(context.Customers.Local)
End Using
The Type is an ObservableCollection(Of T). I expected this to work.
Using context = New TestEntities
context.Customers.Load()
Me.IGrid1.FillWithData(context.Customers.Local.ToBindingList)
End Using
The Type is a BindingList(Of T). I expected this to work.
Using context = New TestEntities
context.Customers.Load()
Me.IGrid1.FillWithData(context.Customers.Local.ToList)
End Using
The Type is a generic List(Of T). I expected this to work.
In all cases, an ArgumentException was thrown:
The specified data source isn't supported
Parameter name: dataSource
The introduction I read on your site suggests that the grid supports binding to IBindingList, among other interfaces. Do you have any idea why the ArgumentException is thrown?
Thank you.