Link Search Menu Expand Document

FlexRow.GetColumn Method

Explanation Returns a reference to the FlexCell object at the specified location.
The GetColumn method can get the data column excluding the header column. Use the GetHeaderColumn method to get the header column.
If the InvalidState property is $TRUE, the exception EXT-12 is raised.
Call format var col = row.GetColumn( pos )
Return value If the FlexCell can be obtained successfully, the FlexCell reference is returned.
If it cannot be obtained, it returns null.
Arguments integer pos Specify the column number starting from 0 for the leftmost data excluding the header column.
Exception EXT-12 Invalid accessor
Example of use
    var row = FlexView1.GetRow();
    var key = null;
    var sum = 0;
    while (!row.End) {
        var col = row.GetColumn(1);
        col.BgColor = $STD;
        row.MoveNext();
    }
    
Related item