skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class Table

Represents a processing Table item.

Inheritance
System.Object
ReportObject
LayoutElement
VisualElement
ProcessingElement
ReportItemBase
ReportItem
NoDataObject
DataItem
Table
Inherited Members
DataItem.DataSource
DataItem.NeedDataSourceMethodName
DataItem.RenderNoData
DataItem.IDataFlow.Filters
DataItem.IDataFlow.Sortings
DataItem.Visible
NoDataObject.NoDataMessage
NoDataObject.NoDataStyle
ReportItem.Bounds
ReportItem.Location
ReportItem.Size
ReportItem.Top
ReportItem.Left
ReportItem.Width
ReportItem.Height
ReportItem.Docking
ReportItem.Dock
ReportItem.Anchoring
ReportItem.Anchor
ReportItem.ITableCell.RowIndex
ReportItem.ITableCell.ColumnIndex
ReportItem.ITableCell.RowSpan
ReportItem.ITableCell.ColumnSpan
ReportItem.ITableCell.Table
ReportItem.ITableCell.Item
ReportItemBase.InitializeDefinitionBasedProperties(ReportObject)
ReportItemBase.TryExecuteMethodByName(String)
ReportItemBase.ProcessAccessibleRole()
ReportItemBase.ProcessAccessibleDescription()
ReportItemBase.ProcessAIDescription()
ReportItemBase.Bookmark
ReportItemBase.BookmarkId
ReportItemBase.DocumentMapText
ReportItemBase.TocText
ReportItemBase.Action
ReportItemBase.ItemDataBindingMethodName
ReportItemBase.ItemDataBoundMethodName
ReportItemBase.ItemDefinition
ReportItemBase.Name
ReportItemBase.AccessibleDescription
ReportItemBase.AccessibleRole
ReportItemBase.AIDescription
ProcessingElement.OnError(Exception)
ProcessingElement.ConvertBoundValue(PropertyInfo, Object)
ProcessingElement.ToString()
ProcessingElement.Exception
ProcessingElement.Parent
ProcessingElement.Report
ProcessingElement.Culture
ProcessingElement.ChildElements
ProcessingElement.DataObject
ProcessingElement.ThrowWhenBindingUnsuccessful
VisualElement.Style
LayoutElement.ParentElement
ReportObject.ToString(String[])
Namespace: Telerik.Reporting.Processing
Assembly: Telerik.Reporting.dll

Syntax

public class Table : DataItem, IDisposable, IStyle, IFont, IBackgroundImage, IBorderColor, IBorderStyle, IBorderWidth, IPadding, INamedObject, IProcessingElement, IEvaluationContext, IInteractiveItem, IServiceProvider, ISupportsInitialize, IDynamicItem, ITableCellInternal, ITableCell, INoDataObject, IRuntimeDataItem, IDataItem, IDataFlow, IDataSourceContainer, ITable, ILayoutElementContainer

Properties

Columns

Gets a list of TableColumn objects that represents the columns in a Table item.

Declaration
public IList<TableColumn> Columns { get; }
Property Value
System.Collections.Generic.IList<TableColumn>

KeepTogether

Declaration
public bool KeepTogether { get; }
Property Value
System.Boolean

Rows

Gets a list of TableRow objects that represents the rows in a Table item.

Declaration
public IList<TableRow> Rows { get; }
Property Value
System.Collections.Generic.IList<TableRow>

Methods

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

Overrides
ReportItemBase.Dispose(Boolean)

GetCell(Int32, Int32)

Gets an ITableCell at the specified row and column index.

Declaration
public ITableCell GetCell(int rowIndex, int columnIndex)
Parameters
System.Int32 rowIndex

System.Int32 columnIndex

Returns
ITableCell

ITableCell.

Remarks

This method should be used after the Table item is data bound.

Examples

The following code snippet demonstrates a sample usage of the GetCell method:.

var tableDef = new Telerik.Reporting.Table();

tableDef.ItemDataBound += delegate(object sender, EventArgs args)
{
    Telerik.Reporting.Processing.Table table = (Telerik.Reporting.Processing.Table)sender;

    for (int rowIndex = 0; rowIndex < table.Rows.Count; rowIndex++)
    {
        for (int columnIndex = 0; columnIndex < table.Columns.Count; columnIndex++)
        {
            Telerik.Reporting.Processing.ITableCell cell = table.GetCell(rowIndex, columnIndex);

            if (cell.RowIndex == rowIndex
                && cell.ColumnIndex == columnIndex)
            {
                Telerik.Reporting.Processing.ReportItem item = cell.Item;

                // Here you can do something with the report item
            }
            else
            {
                // Do nothing. This is part of a merged table cell.
            }
        }
    }
};
Private Sub TableDef_ItemDataBound1(ByVal sender As Object, ByVal e As EventArgs) Handles tableDef.ItemDataBound
    Dim table As Telerik.Reporting.Processing.Table = DirectCast(sender, Telerik.Reporting.Processing.Table)

    For rowIndex = 0 To table.Rows.Count - 1
        For columnIndex = 0 To table.Columns.Count - 1
            Dim cell = table.GetCell(rowIndex, columnIndex)

            If cell.RowIndex = rowIndex AndAlso cell.ColumnIndex = columnIndex Then
                Dim item As Telerik.Reporting.Processing.ReportItem = cell.Item
                ' Here you can do something with the report item
            Else
                ' Do nothing. This is part of a merged table cell
            End If
        Next
    Next
End Sub

Explicit Interface Implementations

ILayoutElementContainer.Children

Declaration
IEnumerable<LayoutElement> ILayoutElementContainer.Children { get; }
Returns
System.Collections.Generic.IEnumerable<LayoutElement>

Implements
ILayoutElementContainer.Children
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.