or
private void m_rgvTimesheets_CellEditorInitialized( object sender, GridViewCellEventArgs e ) { if( e.ActiveEditor is RadDateTimeEditor ) { var editor = (RadDateTimeEditor)(e.ActiveEditor); RadDateTimeEditorElement editorElement = (RadDateTimeEditorElement)editor.EditorElement; editorElement.ShowUpDown = true; editorElement.CustomFormat = "h:mm tt"; if( e.Column.Name == ColumnTS_StopTime ) { var startTime = (DateTime) e.Row.Cells[ColumnTS_StartTime].Value; editor.NullValue = startTime; editor.MinValue = startTime; editor.MaxValue = GetMaxTime( m_rdtpDatePicker.Value ); } }}
