How to View Memo Fields as Edit Boxes in a Grid
ID: Q127880
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 3.0
SUMMARY
This article shows by example how to add a control to a grid. An edit box
is added to a Grid to see the content of a memo field as the data is
browsed.
MORE INFORMATIONStep-by-Step Example
- Create a new form. Click the right mouse button.
- Open the Data Environment, and add a table with a memo field to the Data
Environment. For example, add the EMPLOYEE table located in the
SAMPLES\DATA directory.
- Drag the table from the Data Environment to the form to create a Grid.
- Select the Grid object. Then in the property sheet, set the ColumnCount
to 2.
- Select Column2 from the object drop-down in the Property Sheet.
- While Column2 is still selected, select the Edit Box control from the
Form Controls toolbar. Then click any row in the second column of the
grid. The edit box is added to the second column.
- Modify the following properties of the Column2 object:
- Sparse: set the Sparse property to .F.
- CurrentControl: select Edit1 from the drop-down.
- ControlSource: select the Notes memo field.
- Resize the height of the Grid rows to see more than one line of
information.
- Save and run the form.
Steps to Interactively Delete a Control from the Grid
- From the Object drop-down in the Property Sheet, select the control you
want to delete.
- Click the title bar of the form.
- Press the DELETE key.
Additional query words:
VFoxWin browse
Keywords : FxprgGrid
Version : 3.00
Platform : WINDOWS
Issue type :
|