using System.Data;
using System.Data.SqlClient;
SqlConnection baglanti = new SqlConnection("Data Source=.; initial Catalog=DENEME2; Integrated Security=true");
baglanti.Open();
SqlDataAdapter da = new SqlDataAdapter("Select *From kul", baglanti);
DataTable tablo = new DataTable();
da.Fill(tablo);
DataSet ds = new DataSet();
da.Fill(ds);
dataGrid.ItemsSource = tablo.DefaultView;
baglanti.Close();
enteresan...
YanıtlaSil