SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.columnByFieldName  method

Return the first DataColumn connected to DataField which has the same field name as parameter fieldName. If not exist, it will return 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