Guys Plz give me any ideas .
WPF App to bind a data table from a linq query given below code
Entityfm db = new Entityfm();
var qry = db.TableName.ToList();
datagrid.ItemsSource = qry;
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khaja MoizuddinRank #270 · 9.4K reputationPosted Dec 13, 2016, 7:21 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Dec 13, 2016, 4:36 PM EST
dataGrid1.ItemsSource = from myRow in ds.Tables[0].Rows.CastDataRow >()
where (int)myRow["ID"] < 10
select new Person
{
Age = (int)myRow["ID"],
Name = myRow["Name"] as string
};