DataTableExtensions
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
Gets the value of the cell located in the specified row view and the specified column.
public static object GetColumnValue(this DataRowView rowView, DataColumn column)
The row view in which the cell is located.
columnDataColumnThe column in which the cell is located.
Returns:The value of the found cell.
Gets the collection of property descriptors representing the columns of the DataTable.
public static PropertyDescriptorCollection GetPropertyDescriptorCollection(this DataTable table)
The table.
Returns:Determines whether the type corresponding to the specified column is an SQL type.
public static bool IsSqlType(this DataColumn 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.
Sets the value of the cell located in the specified row view and the specified column.
public static void SetColumnValue(this DataRowView rowView, DataColumn column, object value)
The row view in which the cell is located.
columnDataColumnThe column in which the cell is located.
valueobjectThe value to set as the new value of the cell.