DevExpress control notes

Source: Internet
Author: User

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 ");}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.