Developing a User Interface > Custom Editing and Lookup > Default Editing |
By default, C1QueryFrame provides special editors for the following cases:
Date-time picker control for date/time data types.
Special editing for numeric data types, ignoring characters that are not allowed in a number.
Combo box for Boolean data type.
Combo box for fields with lookup values defined in the schema (the Use lookup values check box checked) or dynamically in the LookupValues event or using the SetLookup method.
This editing behavior is built in; you don’t have to implement it in code.
If you want to disable special editing of date/time, numeric and Boolean types, set the TypedEditing property to False. Then all data types will be edited in a simple edit box. The special typed editing can also be disabled on a field-by-field basis. To disable typed editing for a particular field, set the TypedEditing argument of the BeforeEdit event to False.
A special property of the C1QueryFrame control, FormatDate specifies date format. Default editing supports long and short date, with or without time. If you want more sophisticated formats for dates or other data types, implement your own custom editors, see Custom Editing.