DataGridTableStyle.DataGrid プロパティ

定義

描画されたテーブルの DataGrid コントロールを取得または設定します。

public:
 virtual property System::Windows::Forms::DataGrid ^ DataGrid { System::Windows::Forms::DataGrid ^ get(); void set(System::Windows::Forms::DataGrid ^ value); };
[System.ComponentModel.Browsable(false)]
public virtual System.Windows.Forms.DataGrid DataGrid { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.DataGrid : System.Windows.Forms.DataGrid with get, set
Public Overridable Property DataGrid As DataGrid

プロパティ値

DataGrid

テーブルを表示する DataGrid コントロール。

属性

次のコード例では、表示DataGridTableStyleする CurrentCell .System.Windows.Forms.DataGrid

private:
   void GetSelectedIndex( DataGridTableStyle^ myGridTable )
   {
      /* Get the name of the DataGrid of the DataGridTable 
         passed as an argument. */
      Console::WriteLine( myGridTable->DataGrid->CurrentCell.ToString() );
   }
private void GetSelectedIndex(DataGridTableStyle myGridTable)
{
   /* Get the name of the DataGrid of the DataGridTable 
      passed as an argument. */
   Console.WriteLine(myGridTable.DataGrid.CurrentCell.ToString());
}
Private Sub GetSelectedIndex(myGridTable As DataGridTableStyle)
    ' Get the name of the DataGrid of the DataGridTable 
    ' passed as an argument. 
    Console.WriteLine(myGridTable.DataGrid.CurrentCell.ToString())
End Sub

注釈

コントロールは System.Windows.Forms.DataGrid 、グリッドの形式でデータを表示します。 は DataGridTableStyle 、描画されたグリッドを表すオブジェクトです。 このプロパティは System.Windows.Forms.DataGrid 、グリッドを表示しているコントロールへの参照を返します。

このプロパティはDataGrid、コントロールGridTableStylesCollectionSystem.Windows.Forms.DataGrid a DataGridTableStyle が追加されたときに設定されます。 このプロパティをオーバーライドし、コントロールを組み込む DataGrid ユーザー コントロールのデザイナーを作成する場合を除き、このプロパティを設定しないでください。

適用対象