SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=AnbarDB;Integrated Security=True"); SqlCommand com = new SqlCommand(); SqlDataReader oldr; DataTable Table = new DataTable(); con.Open(); com.Connection = con; com.CommandText = "SELECT * FROM TKala"; oldr = com.ExecuteReader(); Table.Load(oldr); dataGridView1.DataSource = Table;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)