I just started to use linq to select data and populate treeview with the data. Please let me know from the basic level...
This is what I did so far.
- I connected to DB server. Drag from Tables list, so I can see the table that I need to use from right place. (DataClasses1.dbml)
- How do I select data from the table by using linq?
I was trying to imitate this question
But I get the following error: "could not find the implementation of the query pattern for the source type"
private void Form1_Load(object sender, EventArgs e)
{
var grped =
from a in MyTable
group a by a.MyColumn into grp
select grp;
var treeView = new System.Windows.Forms.TreeView();
//
}