New to Telerik UI for WPFStart a free 30-day trial

Provides extension methods which facilitate working with DataTables.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public static class DataTableExtensions

Inheritance: objectDataTableExtensions

Methods

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

C#
public static object GetColumnValue(this DataRowView rowView, DataColumn column)
Parameters:rowViewDataRowView

The row view in which the cell is located.

columnDataColumn

The column in which the cell is located.

Returns:

object

The value of the found cell.

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

C#
public static PropertyDescriptorCollection GetPropertyDescriptorCollection(this DataTable table)
Parameters:tableDataTable

The table.

Returns:

PropertyDescriptorCollection

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

C#
public static bool IsSqlType(this DataColumn column)
Parameters:columnDataColumn

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.

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

C#
public static void SetColumnValue(this DataRowView rowView, DataColumn column, object value)
Parameters:rowViewDataRowView

The row view in which the cell is located.

columnDataColumn

The column in which the cell is located.

valueobject

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