PropertyDescriptor および書式を指定して、 DataGridTextBoxColumn の新しいインスタンスを初期化します。
Public Sub New( _
ByVal prop As PropertyDescriptor, _ ByVal format As String _)
[C#]
public DataGridTextBoxColumn(
PropertyDescriptorprop,stringformat);
[C++]
public: DataGridTextBoxColumn(
PropertyDescriptor* prop,String* format);
[JScript]
public function DataGridTextBoxColumn(
prop : PropertyDescriptor,format : String);
パラメータ
- prop
DataGridTextBoxColumn が関連付けられる列の PropertyDescriptor 。 - format
列値の書式指定に使用する書式。
解説
表示されるデータのカスタム書式を作成するには、このコンストラクタを使用します。
DataGridColumnStyle は、列に表示されるデータの型を決定するために PropertyDescriptor を使用します。 PropertyDescriptorCollection を返すには、 BindingManagerBase クラスの GetItemProperties メソッドを使用します。
書式指定文字の詳細については、「 日付と時刻の書式指定文字列 」と「 標準の数値書式指定文字列 」を参照してください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
DataGridTextBoxColumn クラス | DataGridTextBoxColumn メンバ | System.Windows.Forms 名前空間 | DataGridTextBoxColumn コンストラクタのオーバーロードの一覧 | DataColumn | DataGridColumnStyle | DataGrid