con.Open(); adap = new SqlDataAdapter("select * from details", con); DataTable dt = new DataTable("details"); adap.Fill(dt); dataGrid1.ItemsSource = dt.DefaultView; con.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)