List & Label .NET
combit.Reporting Namespace / AutoDefineElementEventArgs Class / AssociatedTableRow Property


In This Topic
    AssociatedTableRow Property
    In This Topic

    This gives you access to the other elements/columns of the current data row.

    Syntax
    'Declaration
     
    
    Public ReadOnly Property AssociatedTableRow As ITableRow
    public ITableRow AssociatedTableRow {get;}
    public:
    property ITableRow^ AssociatedTableRow {
       ITableRow^ get();
    }
    Example
    ...
    private void LL_AutoDefineField(object sender, AutoDefineElementEventArgs e)
    {
            Boolean bValue;
            Boolean.TryParse(e.AssociatedTableRow.Columns.FirstOrDefault(x => x.ColumnName == "<MyBooleanColumnName>").Content.ToString(), out bValue);
    
            string sValue = e.AssociatedTableRow.Columns.FirstOrDefault(x => x.ColumnName == "<MyTextColumnName>").Content.ToString();
            // ...
    }
    ...
    

     

    Requirements

    Platforms: Windows 10 (Version 21H2 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
    .NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10

    See Also