ButtonFieldとは? わかりやすく解説

ButtonField クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

データ バインド コントロールボタンとして表示されるフィールド表します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class ButtonField
    Inherits ButtonFieldBase
public class ButtonField : ButtonFieldBase
public ref class ButtonField : public
 ButtonFieldBase
public class ButtonField extends ButtonFieldBase
public class ButtonField extends
 ButtonFieldBase
解説解説

データ バインド コントロール (GridView、DetailsView など) は、この ButtonField クラス使用して、各レコード表示するためのボタン表示しますButtonField オブジェクトは、そのオブジェクト使用しているデータ バインド コントロールにより異なった形式表示されます。たとえば、ButtonField オブジェクトは、GridView コントロールでは列として表示されDetailsView コントロールでは行として表示されます。

ボタン フィールドボタンクリックすると、親データ バインド コントロールコマンド イベント発生しますコマンド イベントイベント ハンドラ用意すると、コマンド ボタンクリックされたときにカスタム ルーチン実行できます

メモメモ

GridView コントロールは RowCommand イベント発生させます一方DetailsView コントロールは ItemCommand イベント発生させます

コマンド イベント発生させたレコードインデックス特定するには、データ バインド コントロールコマンド イベント渡されるイベント引数の CommandArgument プロパティ使用しますButtonField クラスは、適切なインデックス値を持つ CommandArgument プロパティ自動的に作成します

表示するボタンの型を指定するには、ButtonType プロパティ使用します。リンクまたはコマンド ボタン表示する場合Text プロパティ使用してボタン表示されるキャプション指定します

ButtonField オブジェクトデータ ソースフィールドバインドすることでも同じ設定を行うことができますこの方法で設定すると、ButtonField オブジェクトの各ボタン異なキャプション表示できますボタンテキスト キャプションには、指定したフィールドの値が使用されます。ButtonField オブジェクトデータ ソースフィールドバインドするには、DataTextField プロパティ設定します

イメージ ボタン表示する場合、ImageUrl プロパティ使用してButtonField オブジェクトボタン表示するイメージ指定します

メモメモ

ButtonField オブジェクトボタンはすべて同じイメージ共有します

Visible プロパティfalse設定すると、データ バインド コントロールButtonField オブジェクトを非表示できます

ButtonField オブジェクトでは、ヘッダーおよびフッター セクションカスタマイズできますヘッダーまたはフッター セクションキャプション表示するには、HeaderText または FooterText プロパティそれぞれ設定します。HeaderImageUrl プロパティ設定すると、ヘッダー セクションテキスト表示する代わりにイメージ表示できますButtonField オブジェクトヘッダー セクションを非表示にするには、 ShowHeader プロパティfalse設定します

また、フィールド各部分にスタイル プロパティ設定すると、ButtonField オブジェクト外観 (フォントの色や背景色など) をカスタマイズできますさまざまなスタイル プロパティの一覧を次の表に示します

スタイル プロパティ

スタイル設定対象

ControlStyle

ButtonField の子 Web サーバー コントロール

FooterStyle

ButtonFieldフッター セクション

HeaderStyle

ButtonFieldヘッダー セクション

ItemStyle

ButtonFieldデータ項目。

使用例使用例

ButtonField オブジェクト使用してGridView コントロールコマンド ボタンの列を表示する方法次のコード例示します

<%@ Page language="VB" %>


<script runat="server">

    Sub CustomersGridView_RowCommand(ByVal
 sender As Object, ByVal
 e As GridViewCommandEventArgs)
  
        ' If multiple ButtonField column fields are used, use the
        ' CommandName property to determine which button was clicked.
        If e.CommandName = "Select"
 Then
    
            ' Convert the row index stored in the CommandArgument
            ' property to an Integer.
            Dim index As Integer
 = Convert.ToInt32(e.CommandArgument)
    
            ' Get the last name of the selected author from the appropriate
            ' cell in the GridView control.
            Dim selectedRow As GridViewRow
 = CustomersGridView.Rows(index)
            Dim contactCell As TableCell =
 selectedRow.Cells(1)
            Dim contact As String
 = contactCell.Text
    
            ' Display the selected author.
            Message.Text = "You selected " & contact
 & "."
      
        End If
    
    End Sub
    
</script>

<html>
  <body>
    <form id="Form1" runat="server">
        
      <h3>ButtonField Example</h3>
      
      <asp:label id="Message"
        forecolor="Red"
        runat="server"/>
                    
      <!-- Populate the Columns collection declaratively. -->
      <asp:gridview id="CustomersGridView" 
        datasourceid="CustomersSqlDataSource" 
        autogeneratecolumns="false"
        onrowcommand="CustomersGridView_RowCommand"
        runat="server">
                
        <columns>
                
          <asp:buttonfield buttontype="Button"
 
            commandname="Select"
            headertext="Select Customer" 
            text="Select"/>
          <asp:boundfield datafield="CompanyName"
 
            headertext="Company Name"/>
          <asp:boundfield datafield="ContactName"
 
            headertext="Contact Name"/>
                
        </columns>
                
      </asp:gridview>
            
        <!-- This example uses Microsoft SQL Server and connects
 -->
        <!-- to the Northwind sample database.            
       -->
        <asp:sqldatasource id="CustomersSqlDataSource"
  
          selectcommand="Select [CustomerID], [CompanyName], [ContactName],
 [ContactTitle] From [Customers]"
          connectionstring="<%$ ConnectionStrings:NorthWindConnection%>"
          runat="server">
        </asp:sqldatasource>
            
    </form>
  </body>
</html>

<%@ Page language="C#" %>

<script runat="server">

  void CustomersGridView_RowCommand(Object sender, GridViewCommandEventArgs
 e)
  {
  
    // If multiple ButtonField column fields are used, use the
    // CommandName property to determine which button was clicked.
    if(e.CommandName=="Select")
    {
    
      // Convert the row index stored in the CommandArgument
      // property to an Integer.
      int index = Convert.ToInt32(e.CommandArgument);    
    
      // Get the last name of the selected author from the appropriate
      // cell in the GridView control.
      GridViewRow selectedRow = CustomersGridView.Rows[index];
      TableCell contactName = selectedRow.Cells[1];
      string contact = contactName.Text;  
    
      // Display the selected author.
      Message.Text = "You selected " + contact + ".";
      
    }
    
  }
    
</script>

<html>
  <body>
    <form runat="server">
        
      <h3>ButtonField Example</h3>
      
      <asp:label id="Message"
        forecolor="Red"
        runat="server"/>
                    
      <!-- Populate the Columns collection declaratively. -->
      <asp:gridview id="CustomersGridView" 
        datasourceid="CustomersSqlDataSource" 
        autogeneratecolumns="false"
        onrowcommand="CustomersGridView_RowCommand"
        runat="server">
                
        <columns>
                
          <asp:buttonfield buttontype="Button" 
            commandname="Select"
            headertext="Select Customer" 
            text="Select"/>
          <asp:boundfield datafield="CompanyName" 
            headertext="Company Name"/>
          <asp:boundfield datafield="ContactName" 
            headertext="Contact Name"/>
                
        </columns>
                
      </asp:gridview>
            
        <!-- This example uses Microsoft SQL Server and connects -->
        <!-- to the Northwind sample database.                   -->
        <asp:sqldatasource id="CustomersSqlDataSource"  
          selectcommand="Select [CustomerID], [CompanyName], [ContactName],
 [ContactTitle] From [Customers]"
          connectionstring="<%$ ConnectionStrings:NorthWindConnection%>"
          runat="server">
        </asp:sqldatasource>
            
    </form>
  </body>
</html>

.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
   System.Web.UI.WebControls.DataControlField
     System.Web.UI.WebControls.ButtonFieldBase
      System.Web.UI.WebControls.ButtonField
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ButtonField メンバ
System.Web.UI.WebControls 名前空間
GridView
Columns
RowCommand
ShowHeader
DetailsView
ItemCommand
Rows
BoundField クラス
ButtonFieldBase
CheckBoxField
CommandField
DataControlField
HyperLinkField
TemplateField
ButtonType
DataTextField
ImageUrl
Text
Visible

ButtonField コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

ButtonField クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

public ButtonField ()
public:
ButtonField ()
public ButtonField ()
解説解説
使用例使用例

M:System.Web.UI.WebControls.ButtonField.#ctor コンストラクタ使用してButtonField オブジェクトGridView コントロール動的に追加する方法次のコード例示します

<%@ Page language="VB" %>

<script runat="server">

    Sub CustomersGridView_RowCommand(ByVal
 sender As Object, ByVal
 e As GridViewCommandEventArgs)
  
        ' If multiple ButtonField column fields are used, use the
        ' CommandName property to determine which button was clicked.
        If e.CommandName = "Select"
 Then
    
            ' Convert the row index stored in the CommandArgument
            ' property to an Integer.
            Dim index As Integer
 = Convert.ToInt32(e.CommandArgument)
    
            ' Get the last name of the selected Customer from the appropriate
            ' cell in the GridView control.
            Dim selectedRow As GridViewRow
 = CustomersGridView.Rows(index)
            Dim contactNameCell As TableCell
 = selectedRow.Cells(1)
            Dim contactName As String
 = contactNameCell.Text
    
            ' Display the selected Customer.
            Message.Text = "You selected " & contactName
 & "."
      
        End If
    
    End Sub

    Sub Page_Load(ByVal sender As
 Object, ByVal e As EventArgs)
  
        ' The field columns need to be created only the first time
        ' the page is loaded.
        If Not IsPostBack Then
      
            ' Dynamically create field columns to display the desired
            ' fields from the data source.
      
            ' Create a ButtonField object to allow the user to 
            ' select an Customer.
            Dim selectButtonField As New
 ButtonField

            selectButtonField.ButtonType = ButtonType.Button
            selectButtonField.CommandName = "Select"
            selectButtonField.HeaderText = "Select Customer"
            selectButtonField.Text = "Select"

            ' Create a BoundField object to display an Customer's last
 name.
            Dim contactNameBoundField As New
 BoundField

            contactNameBoundField.DataField = "ContactName"
            contactNameBoundField.HeaderText = "Contact Name"

            ' Create a BoundField object to display an Customer's first
 name.
            Dim contactTitleBoundField As New
 BoundField

            contactTitleBoundField.DataField = "ContactTitle"
            contactTitleBoundField.HeaderText = "Contact Title"

            ' Add the field columns to the Columns collection of the
            ' GridView control.
            CustomersGridView.Columns.Add(selectButtonField)
            CustomersGridView.Columns.Add(contactNameBoundField)
            CustomersGridView.Columns.Add(contactTitleBoundField)
      
        End If
    
    End Sub

</script>

<html>
  <body>
    <form id="Form1" runat="server">
        
      <h3>ButtonField Constructor Example</h3>

      <asp:label id="Message"
        forecolor="Red"
        runat="server"/>

      <asp:gridview id="CustomersGridView" 
        datasourceid="CustomersSqlDataSource" 
        autogeneratecolumns="False"
        onrowcommand="CustomersGridView_RowCommand"
        runat="server">                
      </asp:gridview>
            
        <!-- This example uses Microsoft SQL Server and connects
 -->
        <!-- to the Northwind sample database.            
       -->
        <asp:sqldatasource id="CustomersSqlDataSource"
  
          selectcommand="Select [CustomerID], [CompanyName], [ContactName],
 [ContactTitle] From [Customers]"
          connectionstring="<%$ ConnectionStrings:NorthWindConnection%>"
          runat="server">
        </asp:sqldatasource>
            
    </form>
  </body>
</html>

<%@ Page language="C#" %>

<script runat="server">

  void CustomersGridView_RowCommand(Object sender, GridViewCommandEventArgs
 e)
  {
  
    // If multiple ButtonField column fields are used, use the
    // CommandName property to determine which button was clicked.
    if(e.CommandName=="Select")
    {
    
      // Convert the row index stored in the CommandArgument
      // property to an Integer.
      int index = Convert.ToInt32(e.CommandArgument);    
    
      // Get the last name of the selected Customer from the appropriate
      // cell in the GridView control.
      GridViewRow selectedRow = CustomersGridView.Rows[index];
      TableCell contactCell = selectedRow.Cells[1];
      string contact = contactCell.Text;  
    
      // Display the selected Customer.
      Message.Text = "You selected " + contact + ".";
      
    }
    
  }

  void Page_Load(Object sender, EventArgs e)
  {
  
    // The field columns need to be created only the first time
    // the page is loaded.
    if (!IsPostBack)
    {
      
      // Dynamically create field columns to display the desired
      // fields from the data source.
      
      // Create a ButtonField object to allow the user to 
      // select an Customer.
      ButtonField selectButtonField = new ButtonField ();

      selectButtonField.ButtonType = ButtonType.Button;
      selectButtonField.CommandName = "Select";
      selectButtonField.HeaderText = "Select Customer";
      selectButtonField.Text = "Select";

      // Create a BoundField object to display an Customer's last name.
      BoundField contactNameBoundField = new BoundField();

      contactNameBoundField.DataField = "ContactName";
      contactNameBoundField.HeaderText = "Contact Name";

      // Create a BoundField object to display an Customer's first name.
      BoundField contactTitleBoundField = new BoundField();

      contactTitleBoundField.DataField = "ContactTitle";
      contactTitleBoundField.HeaderText = "Contact Title";

      // Add the field columns to the Columns collection of the
      // GridView control.
      CustomersGridView.Columns.Add (selectButtonField);
      CustomersGridView.Columns.Add(contactNameBoundField);
      CustomersGridView.Columns.Add(contactTitleBoundField);
      
    }
    
  }

</script>

<html>
  <body>
    <form runat="server">
        
      <h3>ButtonField Constructor Example</h3>

      <asp:label id="Message"
        forecolor="Red"
        runat="server"/>

      <asp:gridview id="CustomersGridView" 
        datasourceid="CustomersSqlDataSource" 
        autogeneratecolumns="False"
        onrowcommand="CustomersGridView_RowCommand"
        runat="server">                
      </asp:gridview>
            
        <!-- This example uses Microsoft SQL Server and connects -->
        <!-- to the Northwind sample database.                   -->
        <asp:sqldatasource id="CustomersSqlDataSource"  
          selectcommand="Select [CustomerID], [CompanyName], [ContactName],
 [ContactTitle] From [Customers]"
          connectionstring="<%$ ConnectionStrings:NorthWindConnection%>"
          runat="server">
        </asp:sqldatasource>
            
    </form>
  </body>
</html>

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ButtonField クラス
ButtonField メンバ
System.Web.UI.WebControls 名前空間
GridView
Columns
DetailsView
Fields

ButtonField プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ AccessibleHeaderText  一部コントロールAbbreviatedText プロパティ値として表示されるテキスト取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ ButtonType  ボタン フィールド表示するボタンの種類取得または設定します。 ( ButtonFieldBase から継承されます。)
パブリック プロパティ CausesValidation  ButtonFieldBase オブジェクトボタンクリックされたときに検証実行するかどうかを示す値を取得または設定します。 ( ButtonFieldBase から継承されます。)
パブリック プロパティ CommandName ButtonField オブジェクトボタンクリックされたときに実行されるアクションを表す文字列を取得または設定します
パブリック プロパティ ControlStyle  DataControlField オブジェクト格納されているすべての Web サーバー コントロールスタイル取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ DataTextField ButtonField オブジェクト表示する Button コントロールText プロパティバインドされている値のデータ フィールド名を取得または設定します
パブリック プロパティ DataTextFormatString フィールド値の表形式指定する文字列取得または設定します
パブリック プロパティ FooterStyle  データ コントロール フィールドフッタースタイル取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ FooterText  データ コントロール フィールドフッター項目に表示されるテキスト取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ HeaderImageUrl  データ コントロール フィールドヘッダー項目に表示されるイメージURL取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ HeaderStyle  データ コントロール フィールドヘッダースタイル取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ HeaderText  データ コントロール フィールドヘッダー項目に表示されるテキスト取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ ImageUrl ButtonField オブジェクトの各ボタン表示されるイメージ取得または設定します
パブリック プロパティ InsertVisible  DataControlField オブジェクトの親データ バインド コントロール挿入モード場合に、このオブジェクト表示されるかどうかを示す値を取得します。 ( DataControlField から継承されます。)
パブリック プロパティ ItemStyle  データ コントロール フィールド表示されるテキスト ベース内容スタイル取得します。 ( DataControlField から継承されます。)
パブリック プロパティ ShowHeader  ButtonFieldBase オブジェクトヘッダー セクション表示するかどうかを示す値を取得または設定します。 ( ButtonFieldBase から継承されます。)
パブリック プロパティ SortExpression  データ ソース コントロールデータ並べ替えるために使用される並べ替え式を、取得または設定します。 ( DataControlField から継承されます。)
パブリック プロパティ Text ButtonField オブジェクトの各ボタン表示される静的キャプション取得または設定します
パブリック プロパティ ValidationGroup  ButtonFieldBase オブジェクトボタンクリックされたときに検証する検証コントロールグループの名前を取得または設定します。 ( ButtonFieldBase から継承されます。)
パブリック プロパティ Visible  データ コントロール フィールド表示するかどうかを示す値を取得または設定します。 ( DataControlField から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ Control  DataControlField オブジェクト関連付けられているデータ コントロール参照取得します。 ( DataControlField から継承されます。)
プロテクト プロパティ DesignMode  デザイン環境で、現在データ コントロール フィールド表示されているかどうかを示す値を取得します。 ( DataControlField から継承されます。)
プロテクト プロパティ IsTrackingViewState  DataControlField オブジェクトビューステートへの変更保存しているかどうかを示す値を取得します。 ( DataControlField から継承されます。)
プロテクト プロパティ ViewState  同一ページ対す複数要求わたってDataControlField オブジェクトビューステート保存し復元できるようにする状態情報のディクショナリを取得します。 ( DataControlField から継承されます。)
参照参照

関連項目

ButtonField クラス
System.Web.UI.WebControls 名前空間
GridView
Columns
RowCommand
ShowHeader
DetailsView
ItemCommand
Rows
BoundField クラス
ButtonFieldBase
CheckBoxField
CommandField
DataControlField
HyperLinkField
TemplateField
ButtonType
DataTextField
ImageUrl
Text
Visible

ButtonField メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド ExtractValuesFromCell  現在のテーブル セルからデータ コントロール フィールドの値を抽出し指定した IDictionary コレクションにその値を追加します。 ( DataControlField から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド Initialize オーバーライドされます現在の ButtonField オブジェクト初期化します。
パブリック メソッド InitializeCell オーバーライドされます指定された DataControlFieldCell オブジェクトを、指定された行の状態に初期化します。
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  この DataControlField オブジェクトを表す文字列を返します。 ( DataControlField から継承されます。)
パブリック メソッド ValidateSupportsCallback オーバーライドされますButtonField オブジェクト格納されているコントロールコールバックサポートしているかどうか確認します
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド CloneField  現在の DataControlField 派生オブジェクトコピー作成します。 ( DataControlField から継承されます。)
プロテクト メソッド CopyProperties オーバーライドされますButtonField オブジェクト現在のプロパティを、指定されDataControlField オブジェクトコピーします
プロテクト メソッド CreateField オーバーライドされますButtonField クラス新しインスタンス作成して返します
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド FormatDataTextValue ButtonField オブジェクトセル指定されフィールド値の書式変換します
プロテクト メソッド LoadViewState  データ ソース ビューの、以前保存したビューステート復元します。 ( DataControlField から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 ( Object から継承されます。)
プロテクト メソッド OnFieldChanged  FieldChanged イベント発生させます。 ( DataControlField から継承されます。)
プロテクト メソッド SaveViewState  ページサーバーポストバックされた時間以降発生したDataControlField ビューステートへの変更保存します。 ( DataControlField から継承されます。)
プロテクト メソッド TrackViewState  DataControlField オブジェクトがそのビューステート変更追跡するようにします。それにより、変更コントロールViewState プロパティ格納して、同じページ対す複数要求わたって永続化できます。 ( DataControlField から継承されます。)
参照参照

関連項目

ButtonField クラス
System.Web.UI.WebControls 名前空間
GridView
Columns
RowCommand
ShowHeader
DetailsView
ItemCommand
Rows
BoundField クラス
ButtonFieldBase
CheckBoxField
CommandField
DataControlField
HyperLinkField
TemplateField
ButtonType
DataTextField
ImageUrl
Text
Visible

ButtonField メンバ

データ バインド コントロールボタンとして表示されるフィールド表します

ButtonField データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ButtonField ButtonField クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ AccessibleHeaderText  一部コントロールAbbreviatedText プロパティ値として表示されるテキスト取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ ButtonType  ボタン フィールド表示するボタンの種類取得または設定します。(ButtonFieldBase から継承されます。)
パブリック プロパティ CausesValidation  ButtonFieldBase オブジェクトボタンクリックされたときに検証実行するかどうかを示す値を取得または設定します。(ButtonFieldBase から継承されます。)
パブリック プロパティ CommandName ButtonField オブジェクトボタンクリックされたときに実行されるアクションを表す文字列を取得または設定します
パブリック プロパティ ControlStyle  DataControlField オブジェクト格納されているすべての Web サーバー コントロールスタイル取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ DataTextField ButtonField オブジェクト表示する Button コントロールText プロパティバインドされている値のデータ フィールド名を取得または設定します
パブリック プロパティ DataTextFormatString フィールド値の表形式指定する文字列取得または設定します
パブリック プロパティ FooterStyle  データ コントロール フィールドフッタースタイル取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ FooterText  データ コントロール フィールドフッター項目に表示されるテキスト取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ HeaderImageUrl  データ コントロール フィールドヘッダー項目に表示されるイメージURL取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ HeaderStyle  データ コントロール フィールドヘッダースタイル取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ HeaderText  データ コントロール フィールドヘッダー項目に表示されるテキスト取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ ImageUrl ButtonField オブジェクトの各ボタン表示されるイメージ取得または設定します
パブリック プロパティ InsertVisible  DataControlField オブジェクトの親データ バインド コントロール挿入モード場合に、このオブジェクト表示されるかどうかを示す値を取得します。(DataControlField から継承されます。)
パブリック プロパティ ItemStyle  データ コントロール フィールド表示されるテキスト ベース内容スタイル取得します。(DataControlField から継承されます。)
パブリック プロパティ ShowHeader  ButtonFieldBase オブジェクトヘッダー セクション表示するかどうかを示す値を取得または設定します。(ButtonFieldBase から継承されます。)
パブリック プロパティ SortExpression  データ ソース コントロールデータ並べ替えるために使用される並べ替え式を、取得または設定します。(DataControlField から継承されます。)
パブリック プロパティ Text ButtonField オブジェクトの各ボタン表示される静的キャプション取得または設定します
パブリック プロパティ ValidationGroup  ButtonFieldBase オブジェクトボタンクリックされたときに検証する検証コントロールグループの名前を取得または設定します。(ButtonFieldBase から継承されます。)
パブリック プロパティ Visible  データ コントロール フィールド表示するかどうかを示す値を取得または設定します。(DataControlField から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ Control  DataControlField オブジェクト関連付けられているデータ コントロール参照取得します。(DataControlField から継承されます。)
プロテクト プロパティ DesignMode  デザイン環境で、現在データ コントロール フィールド表示されているかどうかを示す値を取得します。(DataControlField から継承されます。)
プロテクト プロパティ IsTrackingViewState  DataControlField オブジェクトビューステートへの変更保存しているかどうかを示す値を取得します。(DataControlField から継承されます。)
プロテクト プロパティ ViewState  同一ページ対す複数要求わたってDataControlField オブジェクトビューステート保存し復元できるようにする状態情報のディクショナリを取得します。(DataControlField から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド ExtractValuesFromCell  現在のテーブル セルからデータ コントロール フィールドの値を抽出し指定した IDictionary コレクションにその値を追加します。 (DataControlField から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド Initialize オーバーライドされます現在の ButtonField オブジェクト初期化します。
パブリック メソッド InitializeCell オーバーライドされます指定された DataControlFieldCell オブジェクトを、指定された行の状態に初期化します。
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  この DataControlField オブジェクトを表す文字列を返します。 (DataControlField から継承されます。)
パブリック メソッド ValidateSupportsCallback オーバーライドされますButtonField オブジェクト格納されているコントロールコールバックサポートしているかどうか確認します
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド CloneField  現在の DataControlField 派生オブジェクトコピー作成します。 (DataControlField から継承されます。)
プロテクト メソッド CopyProperties オーバーライドされますButtonField オブジェクト現在のプロパティを、指定されDataControlField オブジェクトコピーします
プロテクト メソッド CreateField オーバーライドされますButtonField クラス新しインスタンス作成して返します
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 (Object から継承されます。)
プロテクト メソッド FormatDataTextValue ButtonField オブジェクトセル指定されフィールド値の書式変換します
プロテクト メソッド LoadViewState  データ ソース ビューの、以前保存したビューステート復元します。 (DataControlField から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 (Object から継承されます。)
プロテクト メソッド OnFieldChanged  FieldChanged イベント発生させます。 (DataControlField から継承されます。)
プロテクト メソッド SaveViewState  ページサーバーポストバックされた時間以降発生したDataControlField ビューステートへの変更保存します。 (DataControlField から継承されます。)
プロテクト メソッド TrackViewState  DataControlField オブジェクトがそのビューステート変更追跡するようにします。それにより、変更コントロールViewState プロパティ格納して、同じページ対す複数要求わたって永続化できます。 (DataControlField から継承されます。)
参照参照

関連項目

ButtonField クラス
System.Web.UI.WebControls 名前空間
GridView
Columns
RowCommand
ShowHeader
DetailsView
ItemCommand
Rows
BoundField クラス
ButtonFieldBase
CheckBoxField
CommandField
DataControlField
HyperLinkField
TemplateField
ButtonType
DataTextField
ImageUrl
Text
Visible



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ButtonField」の関連用語

ButtonFieldのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ButtonFieldのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS