Andy

Andy

  • NA
  • 13
  • 12.7k

Datagridview in WPF

Dec 9 2011 10:57 PM
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.


Answers (1)