Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Column.setValue

Sets the value of the cell in the grid's current row.

Syntax

public void setValue( String value )

Parameters

value

A string that represents the formatted data value for the cell in the grid's current row.

Remarks

The value property of a Column object and the currentCellValue property of the parent DataGrid control do not necessarily reference the same cell. The grid's currentCellValue property refers to the cell that is the intersection of the current row and the current column. A column's value property refers to the cell that is in the grid's current row; however, this column may not be the current column in the grid.

Important   In order to set the value property, the grid's allowUpdate property must be true, the column's readOnly property must be false, and the underlying field must allow data to be modified.

The string passed to setValue is automatically converted to a value of the appropriate data type. The column's dataType property identifies the type of the underlying field.

See Also   getValue