System.Web.UI.WebControls Namespace ButtonColumn Class
Sets or retrieves the text caption to display for the buttons in the column.
Inline |
<asp:buttoncolumn text = strText ... > |
Script |
ButtonColumn.Text = strText |
strText |
String specifying the text caption for the buttons in the column. |
The property is read/write with no default value.
Use the Text property to specify the text caption to display for the buttons in the column.
NOTE: When this property is set, all buttons in the column share the same text caption.
To provide a separate text caption for each hyperlink in the column, use the DataTextField property.
NOTE: The DataTextField and Text properties cannot both be set at the same time. If both properties are set, the DataTextField property takes precedence.
ButtonColumn Members Adding Button Columns to a DataGrid Control