ClassDataTableExtensions
Provides extension methods which facilitate working with DataTables.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
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
public static object GetColumnValue(this DataRowView rowView, DataColumn column)
Parameters
rowView
The row view in which the cell is located.
column
The column in which the cell is located.
Returns
The value of the found cell.
GetPropertyDescriptorCollection(DataTable)
Gets the collection of property descriptors representing the columns of the DataTable.
Declaration
public static PropertyDescriptorCollection GetPropertyDescriptorCollection(this DataTable table)
Parameters
table
The table.
Returns
IsSqlType(DataColumn)
Determines whether the type corresponding to the specified column is an SQL type.
Declaration
public static bool IsSqlType(this DataColumn column)
Parameters
column
The column which type is checked if it is an SQL type.
Returns
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
public static void SetColumnValue(this DataRowView rowView, DataColumn column, object value)
Parameters
rowView
The row view in which the cell is located.
column
The column in which the cell is located.
value
The value to set as the new value of the cell.