Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
(UltraWinGrid.DataSource = EntitySet(Of TEntity)) = "System.NotImplementedException: The method or operation is not implemented.
posted

I'm a newbie with Linq to SQL. I have been playing with various data situations and then binding to an UltraGrid.

I found that the following syntax worked:

UltraGrid.DataSource = System.Data.Linq.Table(Of TEntity)

but this syntax did not:

UltraGrid.DataSource = System.Data.Linq.EntitySet(Of TEntity)

After much deliberation, I found that this syntax did work:

Dim ds As New BindingSource
ds.DataSource = System.Data.Linq.EntitySet(Of TEntity)
UltraGrid.DataSource = ds

Being able to bind directly to an EntitySet(Of TEntity) would be helpful no?