This example checks to make sure that the value the user has typed in is within a certain range; otherwise it disables the update.
Private Sub DataGrid1.BeforeColUpdate (ColIndex As Long, OldValue As Variant, Cancel As Integer)
If ColIndex = 1 Then
If DataGrid1.Columns(1).Value < Now Then
Cancel = True
MsgBox "You must enter a date that is later than today."
End If
End If
End Sub