private void showAppointment(DateTime dt1) |
{ |
rsAppointments.ActiveView.StartDate = Convert.ToDateTime(dt1.ToShortDateString()); |
((SchedulerDayView)rsAppointments.ActiveView).RulerStartScale = dt1.Hour - 1; |
((SchedulerDayView)rsAppointments.ActiveView).RulerEndScale = dt1.AddMinutes(Convert.ToDouble(appointDuration)).Hour + 1; |
} |
Hi,
I have a grid which I populate using the below method
this.gvSheet.MasterGridViewTemplate.LoadFrom(q.ExecuteReader());
for (int i = 0; i < gvSheet.MasterGridViewTemplate.Columns.Count; i++)
{
this.gvSheet.MasterGridViewTemplate.Columns[i].Width = 150;
this.gvSheet.MasterGridViewTemplate.Columns[i].WrapText = false;
}
I then add three checkbox columns using the below
GridViewCheckBoxColumn cb1 = new GridViewCheckBoxColumn();
cb1.UniqueName = "ucb1";
cb1.HeaderText = “cb1";
cb1.Width = 150;
cb1.WrapText = false;
cb1.ReadOnly = false;
this
.gvSheet.Columns.Add(cb1);
this.gvSheet.Columns.Add(cb2);
this.gvSheet.Columns.Add(cb3);
I’m trying to get the values of these three GridViewCheckBoxColumn on the gvSheet_ValueChanged(
I’ve tried
gvSheet.CurrentRow.Cells["ucb1"].Value.ToString() and gvSheet.CurrentRow.Cells["cb1"].Value.ToString() and I get nothing back.
What I’m trying to achieve is if I select cb1 and cb2 column I should get true, true, false returned. I have some business logic which works off the values of these three check boxes.
Any help or pointers would be great.
Thanks