Set

Sets the value for the corresponding column for the DataRow. If the value for the name exists, the old value is replaced.

Syntax

public void set(int Index, String value) 

Parameters

  • The column index with which the specified value is to be associated
  • Value to be associated with the specified name

Results

None.

Exceptions

  • IndexOutOfBounds — the column index is invalid

Example

DataRow row = dataTable.newRow(); 
row.set(0,"4203 Greenridge"); 
row.set(1,"Austin"); 
row.set(2,"Texas") 
dataTable.addRow(row);