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

DataGridTextBoxColumn イベント


パブリック イベントパブリック イベント

  名前 説明
パブリック イベント AlignmentChanged  Alignment プロパティの値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント Disposed  コンポーネントの Disposed イベントを待機するイベント ハンドラを追加します。 ( Component から継承されます。)
パブリック イベント FontChanged  列のフォントが変更されたときに発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント HeaderTextChanged  HeaderText プロパティの値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント MappingNameChanged  MappingName の値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント NullTextChanged  NullText の値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント PropertyDescriptorChanged  PropertyDescriptor プロパティの値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント ReadOnlyChanged  ReadOnly プロパティの値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
パブリック イベント WidthChanged  Width プロパティの値が変更された場合に発生します。 ( DataGridColumnStyle から継承されます。)
参照参照

関連項目

DataGridTextBoxColumn クラス
System.Windows.Forms 名前空間
DataGridBoolColumn クラス
DataGridColumnStyle クラス
DataColumn
DataType
DataGrid クラス
DataGridTextBox クラス
TextBox

DataGridTextBoxColumn クラス

文字列の編集に使用する、DataGridColumnStyle のセル内の TextBox コントロールをホストします。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Class DataGridTextBoxColumn
    Inherits DataGridColumnStyle
Dim instance As DataGridTextBoxColumn
public class DataGridTextBoxColumn : DataGridColumnStyle
public ref class DataGridTextBoxColumn : public
 DataGridColumnStyle
public class DataGridTextBoxColumn extends
 DataGridColumnStyle
public class DataGridTextBoxColumn extends
 DataGridColumnStyle
解説解説

DataGridTextBoxColumn クラスは、abstract クラスの DataGridColumnStyle から派生したものです。実行時に、DataGridTextBoxColumn は、ユーザーがテキスト編集のために使用できる DataGridTextBox コントロールをホストします。

このクラスには、Format および HideEditBox などの特殊なプロパティが追加されています。これらのプロパティを使用すると、ホスト対象の DataGridTextBox コントロールとその属性にアクセスし、値を表示するときに適用する書式を設定できます。

データ ソースが DataColumn オブジェクトを格納している DataTable である場合は、DataColumn の DataType プロパティに、テキスト ボックス コントロールで論理的に編集できるデータ型を設定する必要があります。DataGridTextBoxColumn に自動的に関連付けられるデータ型は、Byte、DateTime、Decimal、Double、Int16、Int32、Int64、UInt16、UInt32、UInt64、Single、および String です。

メモメモ

DateTime、UInt16、UInt32、UInt64、TimeSpan の各データ型は、Visual Basic では完全にはサポートされていません。また、演算子は使用できません。

使用例使用例

DataGridTextBoxColumn を作成し、GridColumnStylesCollection に追加する例を次に示します。このコード例を実行するには、アセンブリの完全限定名を指定する必要があります。アセンブリの完全限定名を取得する方法については、「アセンブリ名」を参照してください。

Private Sub AddColumn()
    Dim myTable As New DataTable()
    
    ' Add a new DataColumn to the DataTable.
    Dim myColumn As New
 DataColumn("myTextBoxColumn")
    myColumn.DataType = System.Type.GetType("System.String")
    myColumn.DefaultValue = "default string"
    myTable.Columns.Add(myColumn)
    ' Get the CurrencyManager for the DataTable.
    Dim cm As CurrencyManager = CType(Me.BindingContext(myTable),
 CurrencyManager)
    ' Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
    Dim pd As PropertyDescriptor = cm.GetItemProperties()("myTextBoxColumn")
    Dim myColumnTextColumn As DataGridTextBoxColumn
    ' Create the DataGridTextBoxColumn with the PropertyDescriptor.
    myColumnTextColumn = New DataGridTextBoxColumn(pd)
    ' Add the new DataGridColumn to the GridColumnsCollection.
    dataGrid1.DataSource = myTable
    dataGrid1.TableStyles.Add(New DataGridTableStyle())
    dataGrid1.TableStyles(0).GridColumnStyles.Add(myColumnTextColumn)
End Sub 'AddColumn
private void AddColumn()
{
     DataTable myTable= new DataTable();
 
     // Add a new DataColumn to the DataTable.
     DataColumn myColumn = new DataColumn("myTextBoxColumn");
     myColumn.DataType = System.Type.GetType("System.String");
     myColumn.DefaultValue="default string";
     myTable.Columns.Add(myColumn);
     // Get the CurrencyManager for the DataTable.
     CurrencyManager cm = (CurrencyManager)this.BindingContext[myTable];
     // Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
     PropertyDescriptor pd = cm.GetItemProperties()["myTextBoxColumn"];
     DataGridTextBoxColumn myColumnTextColumn;
     // Create the DataGridTextBoxColumn with the PropertyDescriptor.
     myColumnTextColumn = new DataGridTextBoxColumn(pd);
     // Add the new DataGridColumn to the GridColumnsCollection.
     dataGrid1.DataSource= myTable;
     dataGrid1.TableStyles.Add(new DataGridTableStyle());
     dataGrid1.TableStyles[0].GridColumnStyles.Add(myColumnTextColumn);
 }

private:
   void AddColumn()
   {
      DataTable^ myTable = gcnew DataTable;
      
      // Add a new DataColumn to the DataTable.
      DataColumn^ myColumn = gcnew DataColumn( "myTextBoxColumn" );
      myColumn->DataType = System::Type::GetType( "System::String" );
      myColumn->DefaultValue = "default string";
      myTable->Columns->Add( myColumn );
      
      // Get the CurrencyManager for the DataTable.
      CurrencyManager^ cm = dynamic_cast<CurrencyManager^>(this->BindingContext[
 myTable ]);
      
      // Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
      System::ComponentModel::PropertyDescriptor^ pd = cm->GetItemProperties()[
 "myTextBoxColumn" ];
      DataGridTextBoxColumn^ myColumnTextColumn;
      
      // Create the DataGridTextBoxColumn with the PropertyDescriptor.
      myColumnTextColumn = gcnew DataGridTextBoxColumn( pd );
      
      // Add the new DataGridColumn to the GridColumnsCollection.
      dataGrid1->DataSource = myTable;
      dataGrid1->TableStyles->Add( gcnew DataGridTableStyle );
      dataGrid1->TableStyles[ 0 ]->GridColumnStyles->Add( myColumnTextColumn
 );
   }

private void AddColumn()
{
    DataTable myTable = new DataTable();
    // Add a new DataColumn to the DataTable.
    DataColumn myColumn = new DataColumn("myTextBoxColumn");
    myColumn.set_DataType(System.Type.GetType("System.String"));
    myColumn.set_DefaultValue("default string");
    myTable.get_Columns().Add(myColumn);
    // Get the CurrencyManager for the DataTable.
    CurrencyManager cm = (CurrencyManager)(this.get_BindingContext().
        get_Item(myTable));
    // Use the CurrencyManager to get the PropertyDescriptor 
    // for the new column.
    PropertyDescriptor pd = cm.GetItemProperties().
        get_Item("myTextBoxColumn");
    DataGridTextBoxColumn myColumnTextColumn;

    // Create the DataGridTextBoxColumn with the PropertyDescriptor.
    myColumnTextColumn = new DataGridTextBoxColumn(pd);

    // Add the new DataGridColumn to the GridColumnsCollection.
    dataGrid1.set_DataSource(myTable);
    dataGrid1.get_TableStyles().Add(new DataGridTableStyle());
    dataGrid1.get_TableStyles().get_Item(0).
        get_GridColumnStyles().Add(myColumnTextColumn);
} //AddColumn
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Windows.Forms.DataGridColumnStyle
        System.Windows.Forms.DataGridTextBoxColumn
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間
DataGridBoolColumn クラス
DataGridColumnStyle クラス
DataColumn
DataType
DataGrid クラス
DataGridTextBox クラス
TextBox

DataGridTextBoxColumn コンストラクタ ()

DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As New DataGridTextBoxColumn
public DataGridTextBoxColumn ()
public:
DataGridTextBoxColumn ()
public DataGridTextBoxColumn ()
public function DataGridTextBoxColumn ()
使用例使用例

DataGridTextBoxColumn を作成し、GridColumnStylesCollection コレクションに追加する例を次に示します。

Private Sub AddColumn()
    Dim myTable As New DataTable()
    
    ' Add a new DataColumn to the DataTable.
    Dim myColumn As New
 DataColumn("myTextBoxColumn")
    myColumn.DataType = System.Type.GetType("System.String")
    myColumn.DefaultValue = "default string"
    myTable.Columns.Add(myColumn)
    ' Get the CurrencyManager for the DataTable.
    Dim cm As CurrencyManager = CType(Me.BindingContext(myTable),
 CurrencyManager)
    ' Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
    Dim pd As PropertyDescriptor = cm.GetItemProperties()("myTextBoxColumn")
    Dim myColumnTextColumn As DataGridTextBoxColumn
    ' Create the DataGridTextBoxColumn with the PropertyDescriptor.
    myColumnTextColumn = New DataGridTextBoxColumn(pd)
    ' Add the new DataGridColumn to the GridColumnsCollection.
    dataGrid1.DataSource = myTable
    dataGrid1.TableStyles.Add(New DataGridTableStyle())
    dataGrid1.TableStyles(0).GridColumnStyles.Add(myColumnTextColumn)
End Sub 'AddColumn
private void AddColumn()
{
     DataTable myTable= new DataTable();
 
     // Add a new DataColumn to the DataTable.
     DataColumn myColumn = new DataColumn("myTextBoxColumn");
     myColumn.DataType = System.Type.GetType("System.String");
     myColumn.DefaultValue="default string";
     myTable.Columns.Add(myColumn);
     // Get the CurrencyManager for the DataTable.
     CurrencyManager cm = (CurrencyManager)this.BindingContext[myTable];
     // Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
     PropertyDescriptor pd = cm.GetItemProperties()["myTextBoxColumn"];
     DataGridTextBoxColumn myColumnTextColumn;
     // Create the DataGridTextBoxColumn with the PropertyDescriptor.
     myColumnTextColumn = new DataGridTextBoxColumn(pd);
     // Add the new DataGridColumn to the GridColumnsCollection.
     dataGrid1.DataSource= myTable;
     dataGrid1.TableStyles.Add(new DataGridTableStyle());
     dataGrid1.TableStyles[0].GridColumnStyles.Add(myColumnTextColumn);
 }

private:
   void AddColumn()
   {
      DataTable^ myTable = gcnew DataTable;
      
      // Add a new DataColumn to the DataTable.
      DataColumn^ myColumn = gcnew DataColumn( "myTextBoxColumn" );
      myColumn->DataType = System::Type::GetType( "System::String" );
      myColumn->DefaultValue = "default string";
      myTable->Columns->Add( myColumn );
      
      // Get the CurrencyManager for the DataTable.
      CurrencyManager^ cm = dynamic_cast<CurrencyManager^>(this->BindingContext[
 myTable ]);
      
      // Use the CurrencyManager to get the PropertyDescriptor for the
 new column.
      System::ComponentModel::PropertyDescriptor^ pd = cm->GetItemProperties()[
 "myTextBoxColumn" ];
      DataGridTextBoxColumn^ myColumnTextColumn;
      
      // Create the DataGridTextBoxColumn with the PropertyDescriptor.
      myColumnTextColumn = gcnew DataGridTextBoxColumn( pd );
      
      // Add the new DataGridColumn to the GridColumnsCollection.
      dataGrid1->DataSource = myTable;
      dataGrid1->TableStyles->Add( gcnew DataGridTableStyle );
      dataGrid1->TableStyles[ 0 ]->GridColumnStyles->Add( myColumnTextColumn
 );
   }

private void AddColumn()
{
    DataTable myTable = new DataTable();
    // Add a new DataColumn to the DataTable.
    DataColumn myColumn = new DataColumn("myTextBoxColumn");
    myColumn.set_DataType(System.Type.GetType("System.String"));
    myColumn.set_DefaultValue("default string");
    myTable.get_Columns().Add(myColumn);
    // Get the CurrencyManager for the DataTable.
    CurrencyManager cm = (CurrencyManager)(this.get_BindingContext().
        get_Item(myTable));
    // Use the CurrencyManager to get the PropertyDescriptor 
    // for the new column.
    PropertyDescriptor pd = cm.GetItemProperties().
        get_Item("myTextBoxColumn");
    DataGridTextBoxColumn myColumnTextColumn;

    // Create the DataGridTextBoxColumn with the PropertyDescriptor.
    myColumnTextColumn = new DataGridTextBoxColumn(pd);

    // Add the new DataGridColumn to the GridColumnsCollection.
    dataGrid1.set_DataSource(myTable);
    dataGrid1.get_TableStyles().Add(new DataGridTableStyle());
    dataGrid1.get_TableStyles().get_Item(0).
        get_GridColumnStyles().Add(myColumnTextColumn);
} //AddColumn
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間
DataColumn
DataGridColumnStyle クラス
DataGrid クラス

DataGridTextBoxColumn コンストラクタ (PropertyDescriptor, Boolean)

PropertyDescriptor を指定して、DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。DataGridTextBoxColumn が既定の列かどうかを指定します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim prop As PropertyDescriptor
Dim isDefault As Boolean

Dim instance As New DataGridTextBoxColumn(prop,
 isDefault)
public DataGridTextBoxColumn (
    PropertyDescriptor prop,
    bool isDefault
)
public:
DataGridTextBoxColumn (
    PropertyDescriptor^ prop, 
    bool isDefault
)
public DataGridTextBoxColumn (
    PropertyDescriptor prop, 
    boolean isDefault
)
public function DataGridTextBoxColumn (
    prop : PropertyDescriptor, 
    isDefault : boolean
)

パラメータ

prop

DataGridTextBoxColumn に関連付ける PropertyDescriptor。

isDefault

DataGridTextBoxColumn が既定の列かどうかを指定します。

解説解説

DataGridColumnStyle は、列に表示されるデータの型を決定するために PropertyDescriptor を使用します。PropertyDescriptorCollection を返すには、BindingManagerBase クラスの GetItemProperties メソッドを使用します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間

DataGridTextBoxColumn コンストラクタ (PropertyDescriptor, String, Boolean)

指定した PropertyDescriptor と書式を使用して、DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。列が既定の列かどうかを指定します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim prop As PropertyDescriptor
Dim format As String
Dim isDefault As Boolean

Dim instance As New DataGridTextBoxColumn(prop,
 format, isDefault)
public DataGridTextBoxColumn (
    PropertyDescriptor prop,
    string format,
    bool isDefault
)
public:
DataGridTextBoxColumn (
    PropertyDescriptor^ prop, 
    String^ format, 
    bool isDefault
)
public DataGridTextBoxColumn (
    PropertyDescriptor prop, 
    String format, 
    boolean isDefault
)
public function DataGridTextBoxColumn (
    prop : PropertyDescriptor, 
    format : String, 
    isDefault : boolean
)

パラメータ

prop

DataGridTextBoxColumn に関連付ける PropertyDescriptor。

format

使用する書式。

isDefault

DataGridTextBoxColumn が既定の列かどうかを指定します。

解説解説

DataGridColumnStyle は、列に表示されるデータの型を決定するために PropertyDescriptor を使用します。PropertyDescriptorCollection を返すには、BindingManagerBase クラスの GetItemProperties メソッドを使用します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間

DataGridTextBoxColumn コンストラクタ (PropertyDescriptor)

PropertyDescriptor を指定して、DataGridTextBoxColumn の新しいインスタンスを初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

public DataGridTextBoxColumn (
    PropertyDescriptor prop
)
public:
DataGridTextBoxColumn (
    PropertyDescriptor^ prop
)
public DataGridTextBoxColumn (
    PropertyDescriptor prop
)
public function DataGridTextBoxColumn (
    prop : PropertyDescriptor
)

パラメータ

prop

DataGridTextBoxColumn が関連付けられる列の PropertyDescriptor。

解説解説

DataGridColumnStyle は、列に表示されるデータの型を決定するために PropertyDescriptor を使用します。PropertyDescriptorCollection を返すには、BindingManagerBase クラスの GetItemProperties メソッドを使用します。

使用例使用例

DataGridTextBoxColumn を作成し、GridColumnStylesCollection コレクションに追加する例を次に示します。

Private Sub AddColumn(myTable As
 DataTable)
    ' Add a new DataColumn to the DataTable.
    Dim myColumn As New
 DataColumn("myTextBoxColumn")
    myColumn.DataType = GetType(String)
    myColumn.DefaultValue = "default string"
    myTable.Columns.Add(myColumn)
    ' Get the ListManager for the DataTable.
    Dim cm As CurrencyManager = CType(Me.BindingContext(myTable),
 CurrencyManager)
    ' Use the ListManager to get the PropertyDescriptor for the new
 column.
    Dim pd As PropertyDescriptor = cm.GetItemProperties()("myTextBoxColumn")
    ' Create a new DataTimeFormat object.
    Dim fmt As New DateTimeFormatInfo()
    ' Insert code to set format.
    Dim myColumnTextColumn As DataGridTextBoxColumn
    ' Create the DataGridTextBoxColumn with the PropertyDescriptor and
 Format.
    myColumnTextColumn = New DataGridTextBoxColumn(pd, fmt.SortableDateTimePattern)
    ' Add the new DataGridColumnStyle to the GridColumnsCollection.
    dataGrid1.TableStyles(0).GridColumnStyles.Add(myColumnTextColumn)
End Sub 'AddColumn
private void AddColumn(DataTable myTable){
    // Add a new DataColumn to the DataTable.
    DataColumn myColumn = new DataColumn("myTextBoxColumn");
    myColumn.DataType = typeof(String);
    myColumn.DefaultValue="default string";
    myTable.Columns.Add(myColumn);
    // Get the ListManager for the DataTable.
    CurrencyManager cm = (CurrencyManager)this.BindingContext[myTable];
    // Use the ListManager to get the PropertyDescriptor for the new
 column.
    PropertyDescriptor pd = cm.GetItemProperties()["myTextBoxColumn"];
    // Create a new DataTimeFormat object.
    DateTimeFormatInfo fmt = new DateTimeFormatInfo();
    // Insert code to set format.
    DataGridTextBoxColumn myColumnTextColumn;
    // Create the DataGridTextBoxColumn with the PropertyDescriptor
 and Format.
    myColumnTextColumn = new DataGridTextBoxColumn(pd, fmt.SortableDateTimePattern);
    // Add the new DataGridColumnStyle to the GridColumnsCollection.
    dataGrid1.TableStyles[0].GridColumnStyles.Add(myColumnTextColumn);
 }

private:
   void AddColumn( DataTable^ myTable )
   {
      // Add a new DataColumn to the DataTable.
      DataColumn^ myColumn = gcnew DataColumn( "myTextBoxColumn" );
      myColumn->DataType = String::typeid;
      myColumn->DefaultValue = "default string";
      myTable->Columns->Add( myColumn );

      // Get the ListManager for the DataTable.
      CurrencyManager^ cm = dynamic_cast<CurrencyManager^>(this->BindingContext[
 myTable ]);

      // Use the ListManager to get the PropertyDescriptor for the new
 column.
      PropertyDescriptor^ pd = cm->GetItemProperties()[ "myTextBoxColumn"
 ];

      // Create a new DataTimeFormat object.
      DateTimeFormatInfo^ fmt = gcnew DateTimeFormatInfo;

      // Insert code to set format.
      DataGridTextBoxColumn^ myColumnTextColumn;

      // Create the DataGridTextBoxColumn with the PropertyDescriptor
 and Format.
      myColumnTextColumn = gcnew DataGridTextBoxColumn( pd,fmt->SortableDateTimePattern
 );

      // Add the new DataGridColumnStyle to the GridColumnsCollection.
      dataGrid1->TableStyles[ 0 ]->GridColumnStyles->Add( myColumnTextColumn
 );
   }
private void AddColumn(DataTable myTable)
{
    // Add a new DataColumn to the DataTable.
    DataColumn myColumn = new DataColumn("myTextBoxColumn");
    myColumn.set_DataType(String.class.ToType());
    myColumn.set_DefaultValue("default string");
    myTable.get_Columns().Add(myColumn);
    // Get the ListManager for the DataTable.
    CurrencyManager cM = (CurrencyManager)(this.get_BindingContext().
        get_Item(myTable));
    // Use the ListManager to get the PropertyDescriptor for the new
 column.
    PropertyDescriptor pd = cM.GetItemProperties().get_Item("myTextBoxColumn");
    // Create a new DataTimeFormat object.
    DateTimeFormatInfo fMt = new DateTimeFormatInfo();
    // Insert code to set format.
    DataGridTextBoxColumn myColumnTextColumn;
    // Create the DataGridTextBoxColumn with the PropertyDescriptor
 and Format.
    myColumnTextColumn = new DataGridTextBoxColumn(pd, fMt.
        get_SortableDateTimePattern());
    // Add the new DataGridColumnStyle to the GridColumnsCollection.
    dataGrid1.get_TableStyles().get_Item(0).get_GridColumnStyles().
        Add(myColumnTextColumn);
} //AddColumn
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間
DataColumn
DataGridColumnStyle クラス
DataGrid クラス

DataGridTextBoxColumn コンストラクタ

DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
DataGridTextBoxColumn () DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

DataGridTextBoxColumn (PropertyDescriptor) PropertyDescriptor を指定して、DataGridTextBoxColumn の新しいインスタンスを初期化します。
DataGridTextBoxColumn (PropertyDescriptor, Boolean) PropertyDescriptor を指定して、DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。DataGridTextBoxColumn が既定の列かどうかを指定します。
DataGridTextBoxColumn (PropertyDescriptor, String) PropertyDescriptor および書式を指定して、DataGridTextBoxColumn の新しいインスタンスを初期化します。
DataGridTextBoxColumn (PropertyDescriptor, String, Boolean) 指定した PropertyDescriptor と書式を使用して、DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。列が既定の列かどうかを指定します。
参照参照

関連項目

DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間
DataColumn
DataGridColumnStyle クラス
DataGrid クラス

DataGridTextBoxColumn コンストラクタ (PropertyDescriptor, String)

PropertyDescriptor および書式を指定して、DataGridTextBoxColumn の新しいインスタンスを初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説
使用例使用例
Private Sub MyAddCustomDataTableStyle()
   ' Get the currency manager for 'myDataSet'.
   Dim myCurrencyManger As CurrencyManager
 = CType(Me.BindingContext(myDataSet), CurrencyManager)
   
   Dim myTableStyle As New
 DataGridTableStyle()
   myTableStyle.MappingName = "Customers"
   
   Dim proprtyDescriptorName As PropertyDescriptor
 = myCurrencyManger.GetItemProperties()("CustName")
   
   Dim myCustomerNameStyle As DataGridTextBoxColumn
 = New DataGridTextBoxColumn(proprtyDescriptorName)
   
   myCustomerNameStyle.MappingName = "custName"
   myCustomerNameStyle.HeaderText = "Customer Name"
   myTableStyle.GridColumnStyles.Add(myCustomerNameStyle)
   
   ' Add style for 'Date' column.
   Dim myDateDescriptor As PropertyDescriptor
 = myCurrencyManger.GetItemProperties()("Date")
   ' 'G' is for MM/dd/yyyy HH:mm:ss date format.
   Dim myDateStyle As DataGridTextBoxColumn
 = New DataGridTextBoxColumn(myDateDescriptor, "G")
   
   myDateStyle.MappingName = "Date"
   myDateStyle.HeaderText = "Date"
   myDateStyle.Width = 150
   myTableStyle.GridColumnStyles.Add(myDateStyle)
   
   ' Add DataGridTableStyle instances to GridTableStylesCollection.
   myDataGrid.TableStyles.Add(myTableStyle)
End Sub 'MyAddCustomDataTableStyle


private void MyAddCustomDataTableStyle()
{
   // Get the currency manager for 'myDataSet'.
   CurrencyManager myCurrencyManger =
            (CurrencyManager)this.BindingContext[myDataSet];

   DataGridTableStyle myTableStyle = new DataGridTableStyle();
   myTableStyle.MappingName = "Customers";

   PropertyDescriptor proprtyDescriptorName =
            myCurrencyManger.GetItemProperties()["CustName"];

   DataGridColumnStyle myCustomerNameStyle =
            new DataGridTextBoxColumn(proprtyDescriptorName);

   myCustomerNameStyle.MappingName = "custName";
   myCustomerNameStyle.HeaderText = "Customer Name";
   myTableStyle.GridColumnStyles.Add(myCustomerNameStyle);

   // Add style for 'Date' column.
   PropertyDescriptor myDateDescriptor =
            myCurrencyManger.GetItemProperties()["Date"];
   // 'G' is for MM/dd/yyyy HH:mm:ss date format.
   DataGridColumnStyle myDateStyle =
            new DataGridTextBoxColumn(myDateDescriptor,"G");

   myDateStyle.MappingName = "Date";
   myDateStyle.HeaderText = "Date";
   myDateStyle.Width = 150;
   myTableStyle.GridColumnStyles.Add(myDateStyle);

   // Add DataGridTableStyle instances to GridTableStylesCollection.
   myDataGrid.TableStyles.Add(myTableStyle);
}

private:
   void MyAddCustomDataTableStyle()
   {
      // Get the currency manager for 'myDataSet'.
      CurrencyManager^ myCurrencyManger = dynamic_cast<CurrencyManager^>(this->BindingContext[
 myDataSet ]);
      DataGridTableStyle^ myTableStyle = gcnew DataGridTableStyle;
      myTableStyle->MappingName = "Customers";
      PropertyDescriptor^ proprtyDescriptorName = myCurrencyManger->GetItemProperties()[
 "CustName" ];
      DataGridColumnStyle^ myCustomerNameStyle = gcnew DataGridTextBoxColumn( proprtyDescriptorName
 );
      myCustomerNameStyle->MappingName = "custName";
      myCustomerNameStyle->HeaderText = "Customer Name";
      myTableStyle->GridColumnStyles->Add( myCustomerNameStyle );

      // Add style for 'Date' column.
      PropertyDescriptor^ myDateDescriptor = myCurrencyManger->GetItemProperties()[
 "Date" ];

      // 'G' is for MM/dd/yyyy HH:mm:ss date format.
      DataGridColumnStyle^ myDateStyle = gcnew DataGridTextBoxColumn( myDateDescriptor,"G"
 );
      myDateStyle->MappingName = "Date";
      myDateStyle->HeaderText = "Date";
      myDateStyle->Width = 150;
      myTableStyle->GridColumnStyles->Add( myDateStyle );

      // Add DataGridTableStyle instances to GridTableStylesCollection.
      myDataGrid->TableStyles->Add( myTableStyle );
   }
private void MyAddCustomDataTableStyle()
{
    // Get the currency manager for 'myDataSet'.
    CurrencyManager myCurrencyManger = ((CurrencyManager)
        (this.get_BindingContext().get_Item(myDataSet)));
    DataGridTableStyle myTableStyle = new DataGridTableStyle();

    myTableStyle.set_MappingName("Customers");

    PropertyDescriptor proprtyDescriptorName = 
        myCurrencyManger.GetItemProperties().get_Item("CustName");
    DataGridColumnStyle myCustomerNameStyle = 
        new DataGridTextBoxColumn(proprtyDescriptorName);

    myCustomerNameStyle.set_MappingName("custName");
    myCustomerNameStyle.set_HeaderText("Customer Name");
    myTableStyle.get_GridColumnStyles().Add(myCustomerNameStyle);

    // Add style for 'Date' column.
    PropertyDescriptor myDateDescriptor = 
        myCurrencyManger.GetItemProperties().get_Item("Date");

    // 'G' is for MM/dd/yyyy HH:mm:ss date format.
    DataGridColumnStyle myDateStyle = 
        new DataGridTextBoxColumn(myDateDescriptor, "G");

    myDateStyle.set_MappingName("Date");
    myDateStyle.set_HeaderText("Date");
    myDateStyle.set_Width(150);
    myTableStyle.get_GridColumnStyles().Add(myDateStyle);

    // Add DataGridTableStyle instances to GridTableStylesCollection.
    myDataGrid.get_TableStyles().Add(myTableStyle);
} //MyAddCustomDataTableStyle
private void MyAddCustomDataTableStyle()
{
    // Get the currency manager for 'myDataSet'.
    CurrencyManager myCurrencyManger = ((CurrencyManager)
        (this.get_BindingContext().get_Item(myDataSet)));
    DataGridTableStyle myTableStyle = new DataGridTableStyle();

    myTableStyle.set_MappingName("Customers");

    PropertyDescriptor proprtyDescriptorName = 
        myCurrencyManger.GetItemProperties().get_Item("CustName");
    DataGridColumnStyle myCustomerNameStyle = 
        new DataGridTextBoxColumn(proprtyDescriptorName);

    myCustomerNameStyle.set_MappingName("custName");
    myCustomerNameStyle.set_HeaderText("Customer Name");
    myTableStyle.get_GridColumnStyles().Add(myCustomerNameStyle);

    // Add style for 'Date' column.
    PropertyDescriptor myDateDescriptor = 
        myCurrencyManger.GetItemProperties().get_Item("Date");

    // 'G' is for MM/dd/yyyy HH:mm:ss date format.
    DataGridColumnStyle myDateStyle = 
        new DataGridTextBoxColumn(myDateDescriptor, "G");

    myDateStyle.set_MappingName("Date");
    myDateStyle.set_HeaderText("Date");
    myDateStyle.set_Width(150);
    myTableStyle.get_GridColumnStyles().Add(myDateStyle);

    // Add DataGridTableStyle instances to GridTableStylesCollection.
    myDataGrid.get_TableStyles().Add(myTableStyle);
} //MyAddCustomDataTableStyle
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTextBoxColumn クラス
DataGridTextBoxColumn メンバ
System.Windows.Forms 名前空間
DataColumn
DataGridColumnStyle クラス
DataGrid クラス

DataGridTextBoxColumn プロパティ


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

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Alignment  列内のテキストの配置について値を取得または設定します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ Container  Component を格納している IContainer を取得します。 ( Component から継承されます。)
パブリック プロパティ DataGridTableStyle  列の DataGridTableStyle を取得します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ Format テキストの書式指定方法を指定する 1 文字以上の文字を取得または設定します。
パブリック プロパティ FormatInfo 値の書式指定方法を決定するために使用する、カルチャ固有の情報を取得または設定します。
パブリック プロパティ HeaderAccessibleObject  列の AccessibleObject を取得します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ HeaderText  列ヘッダーのテキストを取得または設定します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ MappingName  列スタイルの割り当て先のデータ メンバの名前を取得または設定します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ NullText  列が null 参照 (Visual Basic では Nothing) を格納している場合に表示されるテキストを取得または設定します。 ( DataGridColumnStyle から継承されます。)
パブリック プロパティ PropertyDescriptor オーバーライドされます。 DataGridTextBoxColumn の PropertyDescriptor を取得または設定します。
パブリック プロパティ ReadOnly オーバーライドされます。 テキスト ボックスの列が読み取り専用かどうかを示す値を設定します。
パブリック プロパティ Site  Component の ISite を取得または設定します。 ( Component から継承されます。)
パブリック プロパティ Width  列の幅を取得または設定します。 ( DataGridColumnStyle から継承されます。)
プロテクト プロパティプロテクト プロパティ
参照参照

関連項目

DataGridTextBoxColumn クラス
System.Windows.Forms 名前空間
DataGridBoolColumn クラス
DataGridColumnStyle クラス
DataColumn
DataType
DataGrid クラス
DataGridTextBox クラス
TextBox

DataGridTextBoxColumn メソッド


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

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ResetHeaderText  HeaderText を既定値 null 参照 (Visual Basic では Nothing) にリセットします。 ( DataGridColumnStyle から継承されます。)
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 ( Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Abort オーバーライドされます。 編集プロシージャを中断する要求を実行します。
プロテクト メソッド BeginUpdate  EndUpdate メソッドが呼び出されるまで、列の描画を中断します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド CheckValidDataSource  System.Windows.Forms.DataGrid が有効なデータ ソースを保持していない場合、またはこの列がデータ ソースの有効なプロパティに割り当てられていない場合は、例外がスローされます。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド ColumnStartedEditing  ユーザーが列の編集を開始したことを System.Windows.Forms.DataGrid に通知します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド Commit オーバーライドされます。 編集プロシージャを完了する要求を実行します。
プロテクト メソッド ConcedeFocus オーバーライドされます。 フォーカスが与えられたことを列に通知します。
プロテクト メソッド CreateHeaderAccessibleObject  列の AccessibleObject を取得します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 ( Component から継承されます。)
プロテクト メソッド Edit オーバーロードされます。 編集するためにセルを準備します。
プロテクト メソッド EndEdit DataGridColumnStyle の編集操作を終了します。
プロテクト メソッド EndUpdate  BeginUpdate メソッドを呼び出して中断されていた列の描画を再開します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド EnterNullValue オーバーライドされます。 Value を列に入力します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 ( Component から継承されます。)
プロテクト メソッド GetColumnValueAtRow  指定した CurrencyManager から、指定した行の値を取得します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド GetMinimumHeight オーバーライドされます。 DataGridColumnStyle のセルの高さを取得します。
プロテクト メソッド GetPreferredHeight オーバーライドされます。 列のサイズを自動的に変更するために使用する高さを取得します。
プロテクト メソッド GetPreferredSize オーバーライドされます。 指定した値を基準にして、指定した行のセルの最適な幅および高さを返します。
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 ( Component から継承されます。)
プロテクト メソッド HideEditBox DataGridTextBox コントロールを非表示にして、フォーカスを DataGrid コントロールに移します。
プロテクト メソッド Invalidate  列を再描画し、描画メッセージがコントロールに送信されます。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド Paint オーバーロードされます。 オーバーライドされます。 DataGrid コントロールの列を描画します。
プロテクト メソッド PaintText オーバーロードされます。 指定した位置に、指定したテキストおよびそのテキストの境界を示す四角形を描画します。
プロテクト メソッド ReleaseHostedControl オーバーライドされます。 DataGrid が保持している、データの編集に使用されるコントロールへの参照を削除します。
プロテクト メソッド SetColumnValueAtRow  指定した CurrencyManager からの値を使用して、指定した行の値を設定します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド SetDataGrid  この列が属する System.Windows.Forms.DataGrid コントロールを設定します。 ( DataGridColumnStyle から継承されます。)
プロテクト メソッド SetDataGridInColumn オーバーライドされます。 TextBox コントロールを DataGrid コントロールの Control.ControlCollection に追加します。
プロテクト メソッド UpdateUI オーバーライドされます。 ユーザー インターフェイスを更新します。
参照参照

関連項目

DataGridTextBoxColumn クラス
System.Windows.Forms 名前空間
DataGridBoolColumn クラス
DataGridColumnStyle クラス
DataColumn
DataType
DataGrid クラス
DataGridTextBox クラス
TextBox

DataGridTextBoxColumn メンバ

文字列の編集に使用する、DataGridColumnStyle のセル内の TextBox コントロールをホストします。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DataGridTextBoxColumn オーバーロードされます。 DataGridTextBoxColumn クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Alignment  列内のテキストの配置について値を取得または設定します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ Container  Component を格納している IContainer を取得します。(Component から継承されます。)
パブリック プロパティ DataGridTableStyle  列の DataGridTableStyle を取得します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ Format テキストの書式指定方法を指定する 1 文字以上の文字を取得または設定します。
パブリック プロパティ FormatInfo 値の書式指定方法を決定するために使用する、カルチャ固有の情報を取得または設定します。
パブリック プロパティ HeaderAccessibleObject  列の AccessibleObject を取得します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ HeaderText  列ヘッダーのテキストを取得または設定します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ MappingName  列スタイルの割り当て先のデータ メンバの名前を取得または設定します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ NullText  列が null 参照 (Visual Basic では Nothing) を格納している場合に表示されるテキストを取得または設定します。(DataGridColumnStyle から継承されます。)
パブリック プロパティ PropertyDescriptor オーバーライドされます。 DataGridTextBoxColumn の PropertyDescriptor を取得または設定します。
パブリック プロパティ ReadOnly オーバーライドされます。 テキスト ボックスの列が読み取り専用かどうかを示す値を設定します。
パブリック プロパティ Site  Component の ISite を取得または設定します。(Component から継承されます。)
パブリック プロパティ Width  列の幅を取得または設定します。(DataGridColumnStyle から継承されます。)
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ResetHeaderText  HeaderText を既定値 null 参照 (Visual Basic では Nothing) にリセットします。 (DataGridColumnStyle から継承されます。)
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 (Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Abort オーバーライドされます。 編集プロシージャを中断する要求を実行します。
プロテクト メソッド BeginUpdate  EndUpdate メソッドが呼び出されるまで、列の描画を中断します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド CheckValidDataSource  System.Windows.Forms.DataGrid が有効なデータ ソースを保持していない場合、またはこの列がデータ ソースの有効なプロパティに割り当てられていない場合は、例外がスローされます。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド ColumnStartedEditing  ユーザーが列の編集を開始したことを System.Windows.Forms.DataGrid に通知します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド Commit オーバーライドされます。 編集プロシージャを完了する要求を実行します。
プロテクト メソッド ConcedeFocus オーバーライドされます。 フォーカスが与えられたことを列に通知します。
プロテクト メソッド CreateHeaderAccessibleObject  列の AccessibleObject を取得します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド Dispose  オーバーロードされます。 Component によって使用されているリソースを解放します。 (Component から継承されます。)
プロテクト メソッド Edit オーバーロードされます。 編集するためにセルを準備します。
プロテクト メソッド EndEdit DataGridColumnStyle の編集操作を終了します。
プロテクト メソッド EndUpdate  BeginUpdate メソッドを呼び出して中断されていた列の描画を再開します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド EnterNullValue オーバーライドされます。 Value を列に入力します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。)
プロテクト メソッド GetColumnValueAtRow  指定した CurrencyManager から、指定した行の値を取得します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド GetMinimumHeight オーバーライドされます。 DataGridColumnStyle のセルの高さを取得します。
プロテクト メソッド GetPreferredHeight オーバーライドされます。 列のサイズを自動的に変更するために使用する高さを取得します。
プロテクト メソッド GetPreferredSize オーバーライドされます。 指定した値を基準にして、指定した行のセルの最適な幅および高さを返します。
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。)
プロテクト メソッド HideEditBox DataGridTextBox コントロールを非表示にして、フォーカスを DataGrid コントロールに移します。
プロテクト メソッド Invalidate  列を再描画し、描画メッセージがコントロールに送信されます。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド Paint オーバーロードされます。 オーバーライドされます。 DataGrid コントロールの列を描画します。
プロテクト メソッド PaintText オーバーロードされます。 指定した位置に、指定したテキストおよびそのテキストの境界を示す四角形を描画します。
プロテクト メソッド ReleaseHostedControl オーバーライドされます。 DataGrid が保持している、データの編集に使用されるコントロールへの参照を削除します。
プロテクト メソッド SetColumnValueAtRow  指定した CurrencyManager からの値を使用して、指定した行の値を設定します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド SetDataGrid  この列が属する System.Windows.Forms.DataGrid コントロールを設定します。 (DataGridColumnStyle から継承されます。)
プロテクト メソッド SetDataGridInColumn オーバーライドされます。 TextBox コントロールを DataGrid コントロールの Control.ControlCollection に追加します。
プロテクト メソッド UpdateUI オーバーライドされます。 ユーザー インターフェイスを更新します。
パブリック イベントパブリック イベント
  名前 説明
パブリック イベント AlignmentChanged  Alignment プロパティの値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント Disposed  コンポーネントの Disposed イベントを待機するイベント ハンドラを追加します。(Component から継承されます。)
パブリック イベント FontChanged  列のフォントが変更されたときに発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント HeaderTextChanged  HeaderText プロパティの値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント MappingNameChanged  MappingName の値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント NullTextChanged  NullText の値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント PropertyDescriptorChanged  PropertyDescriptor プロパティの値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント ReadOnlyChanged  ReadOnly プロパティの値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
パブリック イベント WidthChanged  Width プロパティの値が変更された場合に発生します。(DataGridColumnStyle から継承されます。)
参照参照

関連項目

DataGridTextBoxColumn クラス
System.Windows.Forms 名前空間
DataGridBoolColumn クラス
DataGridColumnStyle クラス
DataColumn
DataType
DataGrid クラス
DataGridTextBox クラス
TextBox



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataGridTextBoxColumn」の関連用語

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

   

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



DataGridTextBoxColumnのページの著作権

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

©2026 GRAS Group, Inc.RSS