Table of Contents

Method AddColumn

Namespace
DocWright.Reporting.Data
Assembly
DocWright.Reporting.dll

AddColumn(string, Type)

Adds a column that may hold null. Columns must all be added before the first row.

public ReportDataTable AddColumn(string name, Type type)

Parameters

name string

The column's name.

type Type

The CLR type of its values.

Returns

ReportDataTable

This table.

Exceptions

ArgumentNullException

An argument is null.

InvalidOperationException

Rows have already been added, or the name is taken.

AddColumn(ReportDataColumn)

Adds a column. Columns must all be added before the first row.

public ReportDataTable AddColumn(ReportDataColumn column)

Parameters

column ReportDataColumn

The column.

Returns

ReportDataTable

This table.

Exceptions

ArgumentNullException

column is null.

InvalidOperationException

Rows have already been added, or the name is taken.