This documentation is archived and is not being maintained.

ButtonColumn Members

ButtonColumn overview

Public Constructors

public constructorButtonColumn Constructor Initializes a new instance of the ButtonColumn class.

Public Properties

public propertyButtonType Gets or sets the type of button to display in the ButtonColumn column.
public propertyCommandName Gets or sets a string that represents the command to perform when a button in the System.Web.UI.WebControls.ButtonColumn is clicked.
public propertyDataTextField Gets or sets the field name from a data source to bind to the ButtonColumn.
public propertyDataTextFormatString Gets or sets the string that specifies the display format for the caption in each command button.
public propertyFooterStyle (inherited from DataGridColumn) Gets the style properties for the footer section of the column.
public propertyFooterText (inherited from DataGridColumn) Gets or sets the text displayed in the footer section of the column.
public propertyHeaderImageUrl (inherited from DataGridColumn) Gets or sets the location of an image to display in the header section of the column.
public propertyHeaderStyle (inherited from DataGridColumn) Gets the style properties for the header section of the column.
public propertyHeaderText (inherited from DataGridColumn) Gets or sets the text displayed in the header section of the column.
public propertyItemStyle (inherited from DataGridColumn) Gets the style properties for the item cells of the column.
public propertySortExpression (inherited from DataGridColumn) Gets or sets the name of the field or expression to pass to the OnSortCommand method when a column is selected for sorting.
public propertyText Gets or sets the caption displayed in the command buttons of the ButtonColumn.
public propertyVisible (inherited from DataGridColumn) Gets or sets a value that indicates whether the column is visible in the DataGrid control.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitialize Overridden. Resets the ButtonColumn to its initial state.
public methodInitializeCell Overridden. Resets a cell in the ButtonColumn to its initial state.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Properties

protected propertyDesignMode (inherited from DataGridColumn) Gets a value that indicates whether the column is in design mode.
protected propertyOwner (inherited from DataGridColumn) Gets the DataGrid control that the column is a member of.
protected propertyViewState (inherited from DataGridColumn) Gets the System.Web.UI.StateBag that allows a column derived from the DataGridColumn class to store its properties.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodFormatDataTextValue Converts the specified value to the format indicated by the DataTextFormatString property.
protected methodLoadViewState (inherited from DataGridColumn) Loads the state of the DataGridColumn.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodSaveViewState (inherited from DataGridColumn) Saves the current state of the DataGridColumn.
protected methodTrackViewState (inherited from DataGridColumn) Causes tracking of view-state changes to the server control so they can be stored in the server control's System.Web.UI.StateBag object.

See Also

ButtonColumn Class | System.Web.UI.WebControls Namespace

Show: