InvalidateColumn Method
TOC
Collapse the table of content
Expand the table of content

DataGridView.InvalidateColumn Method (Int32)

 

Invalidates the specified column of the DataGridView, forcing it to be repainted.

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

public void InvalidateColumn(
	int columnIndex
)

Parameters

columnIndex
Type: System.Int32

The index of the column to invalidate.

Exception Condition
ArgumentOutOfRangeException

columnIndex is not in the valid range of 0 to the number of columns minus 1.

For more information about painting and invalidation, see Invalidate.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft