Cell Property

Returns or sets the text displayed in the specified grid cell.

DataGrid object.Cell(rowIndex, columnIndex) = string

Version Support

Obsolete from version 9.0.

This property has been replaced by the Cells property, which returns the entire cell object, not just its text value.

To convert this property in your solution, replace Cell with Cells and append the .Text property.

EXAMPLE

Outdated syntax:

grdOrders.Cell(currentRow, currentColumn)

Correct syntax:

grdOrders.Cells(currentRow, currentColumn).Text

Use

The contents of the Grid control are represented as an array of cells. This property must be used with row and column indexes that specify the individual cell within the Grid. The first cell has a row index of 0, and a column index of 0.

Each row in the Grid control may contain a different number of cells. Use the ColCount property to determine the number of columns in a particular row.

See Also

Cells property | ColCount property | RowCount property | ColIndex property | RowIndex property | Marker property

Applies To

DataGrid control


© 2004-2021 looksoftware. All rights reserved.