| ||||||||||||
ButtonFieldBase.ButtonType PropertySystem.Web.UI.WebControls Namespace ButtonFieldBase Class .NET Framework version 2.0 Sets or retrieves the type of button to render in the column. Syntax
Property Value
The property is read/write with a default value of Link. Exceptions
RemarksUse the ButtonType property to specify or determine whether the buttons in a field that derives from the ButtonFieldBase class ( are displayed as link, push, or image buttons. Clicking a button in a button field raises the command event of the parent data-bound control, for which you can respond to and perform some action by providing an event handler for the command event.
ExampleThe following example demonstrates how to set the ButtonType property of a ButtonField at design time, and how to dynamically set the style properties of the buttons in the column at run time.
See AlsoButtonFieldBase Members Adding Button Fields to a GridView Control |
| |||||||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme