DataGridTableStyle.DataGrid プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As DataGridTableStyle Dim value As DataGrid value = instance.DataGrid instance.DataGrid = value
/** @property */ public DataGrid get_DataGrid () /** @property */ public void set_DataGrid (DataGrid value)
テーブルを表示する System.Windows.Forms.DataGrid コントロール。

System.Windows.Forms.DataGrid コントロールは、グリッド形式でデータを表示します。DataGridTableStyle は描画されたグリッドを表すオブジェクトです。System.Windows.Forms.DataGrid プロパティは、グリッドを表示しているコントロールへの参照を返します。
DataGrid プロパティは、DataGridTableStyle が System.Windows.Forms.DataGrid コントロールの GridTableStylesCollection に追加されたときに設定されます。このプロパティを自分で設定することは避けてください。ただし、このプロパティをオーバーライドし、DataGrid コントロールが組み込まれたユーザー コントロールのデザイナを作成している場合は除きます。

DataGridTableStyle を表示する System.Windows.Forms.DataGrid の CurrentCell を出力するコード例を次に示します。
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 'GetSelectedIndex
private void GetSelectedIndex(DataGridTableStyle myGridTable) { /* Get the name of the DataGrid of the DataGridTable passed as an argument. */ Console.WriteLine(myGridTable.DataGrid.CurrentCell.ToString()); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGridTableStyle.DataGrid プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataGridTableStyle.DataGrid プロパティのページへのリンク