{
SqlConnection conn = new SqlConnection(@"Data Source='" + tb6 + "';Initial Catalog='" + tb7 + "';user='" + tb8 + "';pwd='" + tb9 + "'");
SqlConnection conn = new SqlConnection(@"Data Source='" + tb1 + "';Initial Catalog='" + tb2 + "';user='" + tb3 + "';pwd='" + tb4 + "'");
SqlCommand cmd = new SqlCommand("SELECT ID AS REF ARACTIPI AS TIP,ARACADI AS ADI,MARKA AS MARKA FROM ARACBILGILER", conn);
DataTable tablo = new DataTable();
conn.Open();
conn2.Open();
SqlDataReader oku = cmd.ExecuteReader();
tablo.Load(oku);
SqlCommand cmd2 = new SqlCommand("SELECT DURUMU AS ARAC_DURUMU FROM ARACDB WHERE ID='" + gridView1.GetDataRow(i)["REF"] + "'", conn2);
SqlDataReader oku2 = cmd2.ExecuteReader();
tablo.Load(oku2);
gridControl1.DataSource = tablo;
conn.Close();
conn2.Close();
}