How To : Setting up Columns on a MultiColumnList
Contents |
[edit] Description
The headings of the columns for a MultiColumnList control are related to the elements of the collection to which the MultiColumnList control is bound. When selecting the column headings, you can choose any of the available elements in the collection, and you can rearrange the order as desired.
[edit] Prerequisites
Adding a Project to a Solution
Adding a Class to a Project
Adding a Function to a Class
Adding a Field to a Class
Adding a Form to a Class
Binding a Control to an Object
[edit] Procedure
To set up columns for a MultiColumnList control:
- Add a MultiColumnList control to your form.
- In the Property Editor, for Column Settings, click the ellipsis button. A dialog box is displayed.
- In the dialog box, click Populate. This inserts the fields from the collection into the top section of the dialog box. These fields are bound to the columns for the MultiColumnList control.
- Select one of the fields.
- In the bottom section of the dialog box, change the properties for the field as required. For example, to change the text used as the column heading, change the text for Title.
- Repeat Steps 4 and 5 for each field.
- To change the order of the columns, drag the fields in the top section of the dialog box up or down, as desired.
You can also add fields from locations other than the collection to which the MultiColumnList control is bound.
To add additional fields:
- At the top of the dialog box, click Add. A placeholder, called Header, is added to the list of fields.
- In the bottom section of the dialog box, use the Data property to set the source for the field's data.
- Change the name of the column by changing the text for Title.
- Change other properties as appropriate.
[edit] Error Handling
[edit] Examples
For a detailed example on using the MultiColumnList control, see the MultiColumnList control.
[edit] Next Steps
Simulating or Testing Your Project or Application
Posting Your Application
Deploying Your Application
[edit] Tags