SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.existsCellStyle  method

CellStyleManagerstyleid로 지정한 셀 스타일이 등록되어 있으면 true를 리턴한다. 

function existsCellStyle (styleId: String): Boolean;
Returns
Boolean
Parameters
styleId - String. required.
Code -1
    var sm = grid.styleManager();
    //'style1'이라는 styleid를 갖는 스타일이 존재하면 5번째 줄 4번째 셀에 스타일을 적용한다.
    if (grid.existsCellStyle('style1')) {
        sm.setStyleAt(4, 3, 'style1');
    };
See Also
styleManager
CellStyleManager
CellStyle
Examples
셀 스타일