Search code examples
.netwinformslinqlinq-to-entitiesgrid

Binding Grid to a Linq Datasource from Winforms (.net)


Back in the old days (i.e. last month) I'd bind my winforms grid to a dataset and be off and running. By default the grid contents could be updated. (similar to an Excel spreadsheet)

But, if I bind a grid to a Linq datasource (either Linq to SQL or Linq to Entities) my winforms grid is locked into a read-only mode. How can I enable an update mode?


Solution

  • Found the solution: use lambda expressions to filter the entity and bind directly to the entity.