void gcCalendarGrid_CellValuePushed(object sender, CalendarCellValueEventArgs e)
{
if (_valueCache.ContainsKey(e.CellPosition))
{
//Same the value by your own.
_valueCache[e.CellPosition] = e.Value;
}
else
{
_valueCache.Add(e.CellPosition, e.Value);
//If the value is saved by user, change the back color.
this.gcCalendarGrid[e.CellPosition.Date][e.CellPosition.RowIndex, e.CellPosition.ColumnIndex].CellStyle.BackColor = Color.Lime;
}
}
Private Sub gcCalendarGrid_CellValuePushed(sender As Object, e As CalendarCellValueEventArgs)
If _valueCache.ContainsKey(e.CellPosition) Then
'Same the value by your own.
_valueCache(e.CellPosition) = e.Value
Else
_valueCache.Add(e.CellPosition, e.Value)
'If the value is saved by user, change the back color.
Me.gcCalendarGrid(e.CellPosition.[Date])(e.CellPosition.RowIndex, e.CellPosition.ColumnIndex).CellStyle.BackColor = Color.Lime
End If
End Sub