DataGridView.InvalidateColumn(Int32) 方法

定义

使 DataGridView 中的指定列无效,并强制对它进行重新绘制。Invalidates the specified column of the DataGridView, forcing it to be repainted.

public:
 void InvalidateColumn(int columnIndex);
public void InvalidateColumn (int columnIndex);
member this.InvalidateColumn : int -> unit
Public Sub InvalidateColumn (columnIndex As Integer)

参数

columnIndex
Int32

要使其无效的列的索引。The index of the column to invalidate.

异常

columnIndex 不在 0 到列数减 1 的有效范围内。columnIndex is not in the valid range of 0 to the number of columns minus 1.

注解

有关绘制和无效的详细信息,请参阅 InvalidateFor more information about painting and invalidation, see Invalidate.

适用于

另请参阅