combit List & Label 25 - .NET Online Web Help
SchemaRow Property
Example 


combit.ListLabel25.DataProviders Namespace > ITable Interface : SchemaRow Property

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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ITable Interface
ITable Members