SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.hasData  method

If the data row which is specified by parameter row has actual values, it will return true

When prepare data row in advance by GridDataSet.setRowCount, even if the data row is located in the location less than rowCount, it may not actually have field values. 

If the row is beyond the range, it will return false

function hasData (row: Integer): Boolean;
Returns
Boolean
Parameters
row - Integer. required.
Code -1
    $('#hasData').click(function () {
        var createdRows = dataset.getStateRows(DataRowState.CREATED);
        for (var i = 0; i < createdRows.length; i++) {
            if (!dataset.hasData(createdRows[i]) {
                alert(createdRows[i] + "The row has not been entered.");
            }
        }
    }
See Also
rowCount
GridDataSet.setRowCount
Examples
Set Row Count