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 である場合は、DataColumnDataType プロパティに、テキスト ボックス コントロール論理的に編集できるデータ型設定する必要がありますDataGridTextBoxColumn自動的に関連付けられるデータ型は、ByteDateTimeDecimalDouble、Int16、Int32、Int64、UInt16、UInt32、UInt64、Single、および String です。

メモメモ

DateTimeUInt16UInt32UInt64、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 内)
構文構文

Public Sub New ( _
    prop As PropertyDescriptor, _
    isDefault As Boolean _
)
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 内)
構文構文

Public Sub New ( _
    prop As PropertyDescriptor, _
    format As String, _
    isDefault As Boolean _
)
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 Sub New ( _
    prop As PropertyDescriptor _
)
Dim prop As PropertyDescriptor

Dim instance As New DataGridTextBoxColumn(prop)
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 内)
構文構文

Public Sub New ( _
    prop As PropertyDescriptor, _
    format As String _
)
Dim prop As PropertyDescriptor
Dim format As String

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

パラメータ

prop

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

format

列値の書式指定使用する書式

解説解説

表示されるデータカスタム書式作成するには、このコンストラクタ使用します

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

書式指定文字詳細については、「日付と時刻書式指定文字列」と「標準数値書式指定文字列」を参照してください

使用例使用例
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



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

辞書ショートカット

すべての辞書の索引

「DataGridTextBoxColumn」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS