asp.net.ph

EditCommandColumn.ButtonType Property

System.Web.UI.WebControls Namespace   EditCommandColumn Class


Sets or retrieves the type of editcommand to render in the column.

Syntax


Inline <editcommandcolumn buttontype = enumValue ... >
Script EditCommandColumn.ButtonType = enumValue

Property Value


enumValue One of the ButtonColumnType values.

The property is read/write with a default value of LinkButton.

Exceptions


Exception Type Condition
ArgumentException The given column type is not one of the ButtonColumnType values.

Remarks

Use this property to specify whether the buttons in the column are displayed as link or push buttons.

Clicking on any of the edit buttons in the column raises the EditCommand event, whereas clicking on any of the update or cancel buttons raises the UpdateCommand or CancelCommand event, respectively. You can programmatically control the actions performed when the buttons are clicked by providing an event handler for the appropriate event.

See Also

EditCommandColumn Members   Adding EditCommand 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