DGRow.getFirstTd

Syntax

getFirstTd();

Description

The getFirstTd method returns DOM node of the first row cell.

Example

To execute the example, the HTML page must contain the DataGrid component named grid (see Example of Creating the DataGrid Component). Change text color of the first cell of the second row:

// Change text color of the first cell of the second row
grid.getRows()[1].getFirstTd().setAttribute('style', "color: #A020F0");

As a result, text color of the first cell of the second row is changed:

See also:

DGRow