Class
DataTableExtensions

Provides extension methods which facilitate working with DataTables.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public static class DataTableExtensions

Inheritance: objectDataTableExtensions

Methods

GetColumnValue(DataRowView, DataColumn)

Gets the value of the cell located in the specified row view and the specified column.

Declaration

cs-api-definition
public static object GetColumnValue(this DataRowView rowView, DataColumn column)

Parameters

rowView

DataRowView

The row view in which the cell is located.

column

DataColumn

The column in which the cell is located.

Returns

object

The value of the found cell.

GetPropertyDescriptorCollection(DataTable)

Gets the collection of property descriptors representing the columns of the DataTable.

Declaration

cs-api-definition
public static PropertyDescriptorCollection GetPropertyDescriptorCollection(this DataTable table)

Parameters

table

DataTable

The table.

Returns

PropertyDescriptorCollection

IsSqlType(DataColumn)

Determines whether the type corresponding to the specified column is an SQL type.

Declaration

cs-api-definition
public static bool IsSqlType(this DataColumn column)

Parameters

column

DataColumn

The column which type is checked if it is an SQL type.

Returns

bool

true if the type corresponding to the specified column is an SQL type; otherwise, false.

SetColumnValue(DataRowView, DataColumn, object)

Sets the value of the cell located in the specified row view and the specified column.

Declaration

cs-api-definition
public static void SetColumnValue(this DataRowView rowView, DataColumn column, object value)

Parameters

rowView

DataRowView

The row view in which the cell is located.

column

DataColumn

The column in which the cell is located.

value

object

The value to set as the new value of the cell.