Objective Grid for Microsoft® .NET® Reference Guide

GridControl.GetColCount Method 

Back to Class Index

Returns the number of columns in the grid.     

[Visual Basic]
Overridable Protected Function GetColCount() As Integer
[C#]
protected virtual int GetColCount();

Remarks

    

The GetColCount function is called whenever the number of columns for the grid is requested. This function can be used to operate the grid in "virtual mode." By overriding this function, the number of columns can be obtained from your own data sources.     

    

See Also

GridControl Class | GridControl Members | Stingray.Grid Namespace