asp.net.ph

ButtonColumn.CommandName Property

System.Web.UI.WebControls Namespace   ButtonColumn Class


Sets or retrieves the command to perform when a button in the ButtonColumn is clicked.

Syntax


Inline <asp:buttoncolumn commandname = strValue ... >
Script ButtonColumn.CommandName = strValue

Property Value


strValue String specifying the name of the command to perform when a button in the ButtonColumn is clicked.

The property is read/write with no default value.

Remarks

Use the CommandName property to specify or determine the command associated with a button control in a ButtonColumn.

You can set the CommandName property to any valid string that identifies the command to perform when a button is clicked. You can then programmatically determine the command name from the DataGridCommandEventArgs passed to the ItemCommand event handler and perform the command appropriately.

See Also

ButtonColumn Members   Adding Button Columns to a DataGrid Control Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph