New to Telerik Reporting? Start a free 30-day trial

Represents a row in the item.

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public sealed class TableRow

Inheritance: objectTableRow

Properties

Gets the index of the current TableRow in the Rows collection of the Table item.

C#
public int Index { get; }

Methods

Internal use only

C#
public void Dispose()

Gets an ITableCell at the specified column index.

C#
public ITableCell GetCell(int columnIndex)
Parameters:columnIndexintReturns:

ITableCell

An ITableCell instance.

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

Example:
cs-api-definition
var tableDef = new Telerik.Reporting.Table();

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

foreach (Telerik.Reporting.Processing.TableRow row in table.Rows)
{
for (int colIndex = 0; colIndex < table.Rows.Count; colIndex++)
{
Telerik.Reporting.Processing.ITableCell cell = row.GetCell(colIndex);

if (cell.RowIndex == row.Index
&& cell.ColumnIndex == colIndex)
{
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.
}
}
}
};

Internal use only

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()