Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / NonEmptyRowCount Property

In This Topic
    NonEmptyRowCount Property (SheetView)
    In This Topic
    Gets a value that is one more than the index of the last row on this sheet that contains data.
    Public ReadOnly Property NonEmptyRowCount As Integer
    Dim instance As SheetView
    Dim value As Integer
    value = instance.NonEmptyRowCount
    public int NonEmptyRowCount {get;}

    Property Value

    Integer number of the number of rows in this sheet that contain data
    This property is only available at run time.
    string conStr = "Provider=Microsoft.JET.OLEDB.4.0;data source= C:\\Patients2000.mdb";
    string sqlStr = "SELECT * FROM Patients";
    System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(conStr);
    DataSet ds = new DataSet();
    System.Data.OleDb.OleDbDataAdapter daCust = new System.Data.OleDb.OleDbDataAdapter(sqlStr, conn);
    FpSpread1.DataSource = ds;
    int i = FpSpread1.ActiveSheetView.NonEmptyRowCount;
    string msg = i.ToString();
    Response.Write("alert('" + msg + "')");
    Dim conStr As String = "Provider=Microsoft.JET.OLEDB.4.0;data source= C:\Patients2000.mdb"
    Dim sqlStr As String = "SELECT * FROM Patients"
    Dim conn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(conStr)
    Dim ds As DataSet = New DataSet
    Dim daCust As System.Data.OleDb.OleDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter(sqlStr, conn)
    FpSpread1.DataSource = ds
    Dim i As Integer = FpSpread1.ActiveSheetView.NonEmptyRowCount
    Dim msg As String = i.ToString()
    Response.Write("alert('" & msg & "')")
    See Also