Code Snippet
connection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=E:\\temp\\MyDatabaseData2.MDF;Integrated " +
"Security=True;Connect Timeout=30;User Instance=True");
// Initialization on table1.
command1 = new SqlCommand("select Employee_Designation from Designation_Master;", connection);
dataAdapter1 = new SqlDataAdapter();
bindingSource1 = new BindingSource();
dataAdapter1.SelectCommand = command1;
dataAdapter1.Fill(Designation_Table);
bindingSource1.DataSource = Desination_Table;
// Initialization on table2.
command2 = new SqlCommand("select Employee_Name from Employee_Master;", connection);
dataAdapter2 = new SqlDataAdapter();
bindingSource2 = new BindingSource();
dataAdapter2.SelectCommand = command2;
dataAdapter2.Fill(Employee_Table);
bindingSource2.DataSource = Employee_Table;