Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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