PowerWEB LiveControls for ASP.NET
ButtonType Property
See Also  Send comments on this topic.
Dart.LiveControls Namespace > LiveButtonColumn Class : ButtonType Property



Gets or sets the type of button to display in the ButtonColumn column.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("The type of button contained within the column.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
Public Overridable Property ButtonType As LiveButtonColumnType
Visual Basic (Usage)Copy Code
Dim instance As LiveButtonColumn
Dim value As LiveButtonColumnType
 
instance.ButtonType = value
 
value = instance.ButtonType
C# 
[DescriptionAttribute("The type of button contained within the column.")]
[CategoryAttribute("Appearance")]
[DefaultValueAttribute()]
public virtual LiveButtonColumnType ButtonType {get; set;}
C++/CLI 
[DescriptionAttribute("The type of button contained within the column.")]
[CategoryAttribute("Appearance")]
[DefaultValueAttribute()]
public:
virtual property LiveButtonColumnType ButtonType {
   LiveButtonColumnType get();
   void set (    LiveButtonColumnType value);
}

Property Value

One of the PowerWEB controls.LiveButtonColumnType values. The default value is LinkButton.

Exceptions

ExceptionDescription
System.ArgumentExceptionThe specified column type is not one of the PowerWEB controls.LiveButtonColumnType values.

Remarks

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

Clicking on the command buttons in the column raises the LiveDataGrid.ItemCommand event.

You can programmatically control the action performed when the command button is clicked by providing an event handler for the LiveDataGrid.ItemCommand event.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.