Click or drag to resize

NiceFormatter.TablizeAdoTable Method

Converts DataTable rows into a mock display table of rows and columns formatted using ASCII box characters. For more information see the Tablize(IEnumerable<Object> , Nullable<Int32> , Nullable<Int32> ) and TablizeObj(Object, Nullable<Int32> ) methods.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2025-03-15 14:42 GMT+11
Syntax
C#
public static IEnumerable<string> TablizeAdoTable(
	DataTable table,
	int? maxColLen = null,
	int? maxRows = null
)

Parameters

table  DataTable
The DataTable to format and display.
maxColLen  Nullable<Int32>  (Optional)
Optional maximum length of text in each mock column.
maxRows  Nullable<Int32>  (Optional)
Optional maximum number of mock rows to process.

Return Value

IEnumerable<String>
An enumerable set of text lines that display as a mock table using box ASCII characters. Control characters in the displayed values are replaced with a small box U+25AB.
See Also