Item Property (String)
Collapse the table of content
Expand the table of content

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 DataGridViewColumn this[
	string columnName
] { get; }

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:
© 2016 Microsoft