DateEdit sets the Manual recording format (yyyy-MM-dd) (yyyy-MM-dd HH: mm)
/** Set the format for manual DateEdit input (yyyy-MM-dd hh: mm) * DateRegEx = @ "(1 [6-9] | [2-9] \ d) \ d {2})-(0? [1, 13578] | 1 [02])-(0? [1-9] | [12] \ d | 3 [01]) | (1 [6-9] | [2-9] \ d) \ d {2})-(0? [13456789] | 1 [012])-(0? [1-9] | [12] \ d | 30) | (1 [6-9] | [2-9] \ d) \ d {2 }) -0? 2-(0? [1-9] | 1 \ d | 2 [0-8]) | (1 [6-9] | [2-9] \ d) (0 [48] | [2468] [048] | [13579] [26]) | (16 | [2468] [048] | [3579] [26]) 00)-0? 2-29-) "; * DateTimeRegEx = @" (1 [6-9] | [2-9] \ d) \ d {2})-(0? [1, 13578] | 1 [02])-(0? [1-9] | [12] \ d | 3 [01]) | (1 [6-9] | [2-9] \ d) \ d {2})-(0? [13456789] | 1 [012])-(0? [1-9] | [12] \ d | 30) | (1 [6-9] | [2-9] \ d) \ d {2 }) -0? 2-(0? [1-9] | 1 \ d | 2 [0-8]) | (1 [6-9] | [2-9] \ d) (0 [48] | [2468] [048] | [13579] [26]) | (16 | [2468] [048] | [3579] [26]) 00)-0? 2-29-) (20 | 21 | 22 | 23 | [0-1]? \ D): [0-5]? \ D "; * MaskType DevExpress. xtraEditors. mask. maskType. regEx */DateEdit. properties. mask. editMask = PublicConstant. dateRegEx; DateEdit. properties. mask. maskType = DevExpress. xtraEditors. mask. maskType. regEx;
Enter
/** Text box Enter jump to the next control */TextEdit. EnterMoveNextControl = true;
LookUpEdit add OPERATION button
/* Add LookUpEdit OPERATION button * Add Properties_ButtonClick event * determine button type (enumeration) implement corresponding functions for different types */if (e. button. kind = ButtonPredefines. delete) lookUpCompanyName. editValue = null;
Row number drawn by the GridView
/* Draw the row number * CustomDrawRowIndicator event */if (e. info. isRowIndicator) {if (e. rowHandle> = 0) {e. info. displayText = (e. rowHandle + 1 ). toString ();}}
GridControl: obtains the value of a column.
/* Double-click the * MouseDoubleClick event */GridHitInfo hInfo = this. gridView. calcHitInfo (new Point (e. x, e. y); if (hInfo. inRow) {// obtain a column of data string value = this. gridView. getRowCellDisplayText (hInfo. rowHandle, "ColumnName ");}