Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Add New Column, Add Fields Dialog Box

The Add Field dialog box enables you add a new column to a control that supports this dialog box. Examples of controls that support this dialog box are the GridView and DetailsView controls.

To change column properties

  1. In Design view, right-click the control, and then click Show Smart Tag.

    The smart tag panel is displayed.

  2. Click Add New Column.

    The Add Field dialog box is displayed.

  3. Select the field type, set the field options, and then click OK.

    The new column is added to the control.

The options available for each field vary according to the field type.

Choose a field type

Specifies the kind of field to add to the control. The options that are displayed depend on the selected field type.

Header text

Specifies the text to display as the column heading.

Data field

Specifies the field in the data source to bind to.

Read only

Specifies the field should be read only.

Data field

Specifies the field in the data source to bind to.

Read only

Specifies whether the field should be read only.

Hyperlink text

Specifies the hyperlink text to display. Select Specify text to specify the text manually. Select Get text from data field to specify the data source field that contains the text to display. If you select Get text from data field, the Text format string box is enabled, and you can enter a format string.

Hyperlink URL

Specifies the URL for the hyperlink. Select Specify URL to specify the URL manually. Select Get URL from data field to specify the data source field that contains the URL to display. If you select Get URL from data field, the URL format string box is enabled, and you can enter a format string.

Button type

Specifies the button type (Link or Button).

Command name

Specifies the name of the command that the button will execute (Cancel, Delete, Edit, Insert, New, or Update).

Text

Specifies the text to display on the button.

Button type

Specifies the button type (Link or Button).

Command Buttons

Specifies the buttons to display in the field (Delete, Edit/Update, or New/Insert). If you select Edit/Update, you can also select Show cancel button.

Data field

Specifies the data source field that contains the image to display.

URL format string

Specifies the URL format string for the image.

Read only

Specifies whether the field should be read only.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.