DataGridBoolColumn Constructor (PropertyDescriptor^, Boolean)
.NET Framework (current version)
Initializes a new instance of a DataGridBoolColumn with the specified PropertyDescriptor, and specifying whether the column style is a default column.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- prop
-
Type:
System.ComponentModel::PropertyDescriptor^
The PropertyDescriptor associated with the column.
- isDefault
-
Type:
System::Boolean
true to specify the column as the default; otherwise, false.
To get a PropertyDescriptor, first use the BindingContext to return the appropriate BindingManagerBase. Then use the GetItemProperties method of the BindingManagerBase to return a PropertyDescriptorCollection. Finally, use the Item property of the PropertyDescriptorCollection to return the specific PropertyDescriptor for the column.
.NET Framework
Available since 1.1
Available since 1.1
Show: