string s = "select Code , Place from table" sCommand = new SqlCommand(s, con); sdAdapter = new SqlDataAdapter(); sdAdapter.SelectCommand = sCommand; dt = new DataTable(); sdAdapter.Fill(dt); BindingSource BSource = new BindingSource(); BSource.DataSource = dt; dataGridView1.DataSource = BSource;
string s = "select Code , Place from table"
string s = "select * from table"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)