SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.columnByField  method

Return the first DataColumn which has the same dataIndex property value as parameter fieldIndex. If not exist, it will return null. 

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