DataGridViewColumnCollection::Item Property (String^)

 

Gets or sets the column of the given name in the collection.

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

public:
property DataGridViewColumn^ default[
	String^ columnName
] {
	DataGridViewColumn^ get(String^ columnName);
}

Parameters

columnName
Type: System::String^

The name of the column to get or set.

Property Value

Type: System.Windows.Forms::DataGridViewColumn^

The DataGridViewColumn identified by the columnName parameter.

Exception Condition
ArgumentNullException

columnName is null.

.NET Framework
Available since 2.0
Return to top
Show: