Description
Use the wColumn
property to get the caption of an object column by its index.
Declaration
TestObj.wColumn(Column)
Read-Only Property | String |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Column | [in] | Required | Integer |
Applies To
The property is applied to the following objects:
AngularUI Grid/, Borland String Grid, Borland TDBGrid and 35 more objects, Developer Express ExpressVerticalGrid, Developer Express WPF Grid, Developer Express XtraGrid, Developer Express XtraVerticalGrid, DevExpressXtraGridView, DevExpressXtraVerticalGridColumn, Ext JS Grid Panel, Flex DataGrid, Infragistics UltraGrid, Infragistics WebDataGrid, Infragistics XamDataGrid, InfragisticsUltraGridView, InfragisticsWebDataGridView, Java Swing Table, JavaFX TableView, MFC Grid, Microsoft DataGrid, Microsoft DataGridView, Qt TableWidget, Rogue Wave Stingray Objective Grid, Rogue Wave Stingray Objective GridEx, Silverlight Grid, Spark DataGrid, Syncfusion Essential Grid (GridGroupingControl), Syncfusion Grid Controls, SyncfusionEssGridView, Telerik RadGridView for Silverlight, Telerik RadGridView for WinForms, Telerik RadGridView for WPF, TMS TAdvStringGrid, WPFToolkitDataGrid, XamDataGridView, Xceed Grid, YUI 2 DataTable, YUI 3 DataTable « Collapse the list
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Parameters
Column
The zero-based index of the grid column whose caption you want to retrieve. Note that this parameter takes the column’s position within the grid’s internal columns collection rather than the column’s visible position in the grid (in general, these positions can differ).
Property Value
A string holding the caption of the specified column.
Remarks
If the column with the specified index is not found, wColumn
returns an empty string and posts an error message to the test log.
To get the total number of columns read the wColumnCount
property.
Example
To view an example that demonstrates how to use the wColumn
property, see Iterating Through Rows in Infragistics UltraGrid.
See Also
wColumn Property (Specific to Developer Express QuantumGrid Controls)
wColumnCount Property (Grid Controls)