DataGridView.DisplayedColumnCount Method (Boolean)

 

Returns the number of columns displayed to the user.

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

public int DisplayedColumnCount(
	bool includePartialColumns
)

Parameters

includePartialColumns
Type: System.Boolean

true to include partial columns in the displayed column count; otherwise, false.

Return Value

Type: System.Int32

The number of columns displayed to the user.

.NET Framework
Available since 2.0
Return to top
Show: