DataGridView and LINQ
So I have created a DataContext, formed my query, bound the query to my bindingSource, and bound the bindingSource to my dataGridView. However, nothing displays on my form. What have I missed? Thanks.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

ramesh p66 reputationPosted Apr 14, 2009, 9:13 PM EDT
try like this....
WebFleetEntities entities = new WebFleetEntities();
var query = from c in entities.Gen_MDT
select c;
grdvGenMDTTypes.DataSource = query;
grdvGenMDTTypes.DataBind();