DataGridBoolColumn Constructor (PropertyDescriptor, Boolean)

 
Use BaseTrue

Initializes a new instance of a DataGridBoolColumn with the specified PropertyDescriptor, and specifying whether the column style is a default column.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DataGridBoolColumn(
	PropertyDescriptor prop,
	bool isDefault
)

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
Return to top
Show: