SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getCellStyle  method

매개변수로 지정한 셀에 설정된 CellStyle 객체를 리턴한다. 설정되지 않았다면 null을 리턴한다. 

설정 여부를 확인하고 싶다면 이 메소드 보다는 getCellStyleId를 사용한다. 

function getCellStyle (dataRowIndex: Integer, field: Integer|String): CellStyle;
Returns
CellStyle
Parameters
dataRowIndex - Integer.
field - Integer|String.
Code -1
    //4번째 row 4번째 column에 설정된 cellstyle 객체를 가져온다.
    var cs = grid.getCellStyle(3, 3);
Note
See Also
getCellStyleId
CellStyle
Examples
Cell Styles