void gcCalendarGrid_CellEditingValueChanged(object sender, CalendarCellEditingValueChangedEventArgs e)
{
//This is a CheckBoxCell
if (e.CellPosition.Scope == CalendarTableScope.Content && e.CellPosition.RowIndex == 2 && e.CellPosition.ColumnIndex == 1)
{
if (object.Equals(e.Value, true))
{
this.gcCalendarGrid[e.CellPosition.Date][2, 0].Value = "True";
this.gcCalendarGrid[e.CellPosition.Date][2, 0].CellStyle.BackColor = Color.Lime;
}
else
{
this.gcCalendarGrid[e.CellPosition.Date][2, 0].Value = "False";
this.gcCalendarGrid[e.CellPosition.Date][2, 0].CellStyle.BackColor = Color.Red;
}
}
}
Private Sub gcCalendarGrid_CellEditingValueChanged(sender As Object, e As CalendarCellEditingValueChangedEventArgs)
'This is a CheckBoxCell
If e.CellPosition.Scope = CalendarTableScope.Content AndAlso e.CellPosition.RowIndex = 2 AndAlso e.CellPosition.ColumnIndex = 1 Then
If Object.Equals(e.Value, True) Then
Me.gcCalendarGrid(e.CellPosition.[Date])(2, 0).Value = "True"
Me.gcCalendarGrid(e.CellPosition.[Date])(2, 0).CellStyle.BackColor = Color.Lime
Else
Me.gcCalendarGrid(e.CellPosition.[Date])(2, 0).Value = "False"
Me.gcCalendarGrid(e.CellPosition.[Date])(2, 0).CellStyle.BackColor = Color.Red
End If
End If
End Sub