combit List & Label 25 - .NET Online Web Help
Columns Property (ITableRow)
Example 


combit.ListLabel25.DataProviders Namespace > ITableRow Interface : Columns Property
This property is accessed to query the columns of the table row. If your data provider supports the ICanHandleUsedIdentifiers interface, you only need to return the columns received in SetUsedIdentifiers Method
Syntax
Example
public ReadOnlyCollection<ITableColumn> Columns
{
    get
    {
        List<ITableColumn> columns = new List<ITableColumn>();

        DataTable dt = _dataRowView.Row.Table;

        foreach (DataColumn dc in dt.Columns)
        {
            DataColumnWrapper current = new DataColumnWrapper(dc, _dataRowView[dc.ColumnName]);
            columns.Add(current);
        }
        return columns.AsReadOnly();
    }
}
Public Readonly Property Columns() As ReadOnlyCollection(Of ITableColumn)
    Get
        Dim columns As New List(Of ITableColumn)()

        Dim dt As DataTable = _dataRowView.Row.Table

        For Each dc As DataColumn In dt.Columns
            Dim current As New DataColumnWrapper(dc, _dataRowView(dc.ColumnName))
            columns.Add(current)
        Next
        Return columns.AsReadOnly()
    End Get
End Property
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ITableRow Interface
ITableRow Members