So i am displaying my data in my datagrid using this:
con.Open();
adap = new SqlDataAdapter("SELECT ID, Course_Description as
'Course',Student_Name as 'Name', Classroom as 'Room', Seat_Number as
'Seat No.' from TBL_SeatPlan WHERE Course_Description = '"+
cmbCourse.Text +"' ", con);
ds = new System.Data.DataSet();
adap.Fill(ds,"SeatPlan");
dtSeat.DataSource = ds.Tables[0];
con.Close();
what i want to know is how can i put a comboBox and and check box in a specific column like in Course_Description is a comboBox and checkbox before the ID.
i have seen several articles and videos but they seem a bit complicated to understand for beginners like me. i will really appreciate your help.
Aucun commentaire:
Enregistrer un commentaire