SMART datagrid v1.4 > Classes > GridBase
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
- 리턴된 스타일 객체의 속성을 변경한다고 해서 그리드에 바로 반영되지 않는다.
- 특별한 경우가 아니면 read-only 객체로 다뤄야 한다.
- See Also
- getCellStyleId
- CellStyle
- Examples
- Cell Styles