combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / ITable Interface / SchemaRow Property
Example


In This Topic
    SchemaRow Property
    In This Topic

    This property is queried whenever a schema row is requested. As long as you don't return an empty enumeration for the Rows property, you don't need to implement this property and may safely throw a NotImplementedException.

    Syntax
    'Declaration
     
    
    ReadOnly Property SchemaRow As ITableRow
    ITableRow SchemaRow {get;}
    property ITableRow^ SchemaRow {
       ITableRow^ get();
    }
    Remarks

    Please note the values of each column of the returned ITableRow should have NULL values like DBNull.Value.

    If you're supporting the retrieval of a schema row we recommend to cache it as a local member. This is even more important if you rely on your rows to be disposed. List & Label will not call Dispose() on any SchemaRow instance in order to support such caching scenarios. Instead, you have to implement IDisposable on your table and dispose the cached schema row in your table's Dispose() method yourself.

    Example
    public ITableRow SchemaRow
    {
        get
        {
            return new DataRowViewWrapper(_dataView.AddNew());
        }
    }
    Public Readonly Property SchemaRow() As ITableRow
        Get
            Return New DataRowViewWrapper(_dataView.AddNew())
        End Get
    End Property
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also