SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.getRow method
Deprecated. 대신 getValues를 사용한다.
Return the field values of data row which is specified by row as array.
getRowObject is returned as JSON object.
function getRow (row: Integer): Array;
- Returns
- Array
- Parameters
- row - Integer. required.
Code -1
var row = grid.focusedDataRow();
if (row) {
var values = ds.getRow(row.dataIndex());
$('#addr').val(values[0]);
#('#salary').val(values[1]);
}
- Note
- The returned array is the copy of data which is stored in data set. In other words, even if update the returned array, it will not be reflected in data set.
- Like other method, you must not update Date object which is returned from DATETIME field.
- See Also
- getValues
- getRowObject
- getFieldValues
- Examples
- Grid Data Set Rows