DataGridViewColumnCollection.Contains Method (DataGridViewColumn)

 

Determines whether the collection contains the given column.

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

public virtual bool Contains(
	DataGridViewColumn dataGridViewColumn
)

Parameters

dataGridViewColumn
Type: System.Windows.Forms.DataGridViewColumn

The DataGridViewColumn to look for.

Return Value

Type: System.Boolean

true if the given column is in the collection; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: