We can bind the DataGridView in C#.net with the help of following code: SqlConnection vConn = new SqlConnection("Server=localhost; database=rohit; user id=sa; pwd=***"); vConn.Open(); String vQuery = textBox1.Text; SqlDataAdapter vAdap = new SqlDataAdapter(vQuery, vConn); DataSet vDs = new DataSet(); vAdap.Fill(vDs, "Emp"); dataGridView1.DataBindings.Clear(); DataTable vDt = vDs.Tables["Emp"]; dataGridView1.DataSource = vDs; dataGridView1.DataMember = "Emp"; vConn.Close(); //BIND THE LISTBOX WITH THE COLUMN FROM DATABASE. SqlC...