不用控件没法实现,infopoewr控件:
When a field in your grid can contain only two different values, such as Yes/No, Y/N or On/Off, you can represent the field抯 data with a checkbox. A Windows checkbox is a simple two-state edit control, where it is either checked or unchecked, providing the end-user with a very effective visual indication of the field抯 current state. Changing the type of edit control used to display the data in a grid column to a CheckBox is accomplished via the following steps:
I. Change the Edit Control for this field via the InfoPower Select Fields dialog box:
A. Double-click the grid component to display InfoPower抯 Select Fields dialog box. Make sure the column/field you want to change is listed in the Selected Fields listbox. If the field is not currently selected, double-click the field name in the Available Fields listbox to select it.
B. In the Selected Fields listbox, highlight the name of the field you want to change by clicking on it.
C. Click the Edit Control tab within the Currently Selected Field section of the dialog box to display the field抯 currently selected edit control.
D. Click the drop-down button of the Control Type field and click on CheckBox.
II. Enter values to be assigned to the related table抯 field when the checkbox is checked and unchecked.
A. Enter a value to be assigned to the related table抯 field when the checkbox is checked, in the Value when checked edit box.
B. Enter a value to be assigned to the related table抯 field when the checkbox is unchecked, in the Value when unchecked edit box.
III. Click the OK button of the Select Fields dialog box to close it