Microsoft SDK for Java

DataGrid.getColumnCount

Retrieves the number of columns in the grid, visible or hidden.

Syntax

public int getColumnCount()

Return Value

Returns the total number of columns in the grid.

Remarks

The value returned by getColumnCount includes all columns in the grid, even if a column's visible property is set to false.

To retrieve the number of columns that are only visible in the grid's current scroll position, call getVisibleColumns.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.