SMART datagrid v1.4 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.columnByFieldName  method

매개변수 fieldName과 동일한 필드이름을 갖는 DataField에 연결된 첫번째 DataColumn을 리턴한다. 존재하지 않으면 null을 리턴한다. 

function columnByFieldName (fieldName: String): GridColumn;
Returns
GridColumn
Parameters
fieldName - String. required.
Code -1
    var group = grid.focusedIndex().group();
    if (group) {
        var col = group.columnByField('fldName');
        if (col) {
            col.styles().setBackground('#30ff0000');
        }
    }
See Also
columnByField
DataField.fieldName
DataColumn
Examples
Column Grouping