string rr = @"Data Source=F:\Works\WindowsApp\clob\clob\Database12.sdf"; using (con = new SqlConnection(rr)) { cmd = new SqlCommand(@"SELECT uId, pass FROM users", con); //cmd.CommandType = System.Data.CommandType.StoredProcedure; //cmd.Parameters.AddWithValue("@date", datePicker.Value); //cmd.Parameters.AddWithValue("@roomNumber", cmboRoom.Text); con.Open(); using (SqlDataAdapter sda = new SqlDataAdapter(cmd)) { using (DataTable dt = new DataTable()) { sda.Fill(dt); dataGridView1.DataSource = dt; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)