ButtonColumnType 枚举

定义

ButtonColumn 对象指定按钮类型。

C#
public enum ButtonColumnType
继承
ButtonColumnType

字段

名称 说明
LinkButton 0

超链接按钮的列。

PushButton 1

下压按钮的列。

示例

C#
private void Page_Init(Object sender, EventArgs e)
{

   // Create dynamic column to add to Columns collection.
   ButtonColumn AddColumn = new ButtonColumn();
   AddColumn.HeaderText="Add Item";
   AddColumn.Text="Add";
   AddColumn.CommandName="Add";
   AddColumn.ButtonType = ButtonColumnType.PushButton;

   // Add column to Columns collection.
   ItemsGrid.Columns.AddAt(2, AddColumn);
}

注解

ButtonColumnType枚举表示 对象的按钮样式ButtonColumn

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另请参阅