Setting a MinValue and a MaxValue for a DateTimePicker cell
New DiscussionI have an UltraWinGrid on one of my forms, which has 3 colums: Rate, Date From and Date To. It is used for setting up VAT rates, so I need to validate the grid in two ways.
1) When the user enters a value in the DateFrom column, the DateTo column’s MinValue is the DateFrom value.AddDays(1)
2) And the flip side of this, when a value is entered into the DateTo column, the DateFrom MaxValue is DateTo value.AddDays(-1)
But, I can’t work out how to do this. I tried using
e.Cell.Row.Cells(“DateFrom”).MaxValue, but this isn’t a valid method/.
So how can I do this? I don’t want it set for the full column, only for that cell on that row.
I have, at the top of the form class added in
Public Class frmSystemSettings
Implements IEditorDataFilter
But how can I use this/the Convert Function to set a Min/Max Value? (Language is vb.net)