Hi,
I want to bind itemsource to Datagridview. I have write foll code:
cmd = new SqlCommand(Querry, con);
cmd.CommandType = CommandType.Text;
da = new SqlDataAdapter(cmd);
da.Fill(ds);
dataGrid1.ItemsSource = ds.Tables[0].DefaultView;
But datagridview not showing rows.
Same i have done at windows programming. where it is working properly.
Datagridview in WPF
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 9, 2011, 7:10 PM EST
Please refer the below link
http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx#dataset
Thanks