Class DataTableExtensions
Provides extension methods which facilitate working with DataTables.
Inheritance
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public static class DataTableExtensions : Object
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
System. The row view in which the cell is located. |
System. The column in which the cell is located. |
Returns
System. 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
System. The table. |
Returns
System.
|
IsSqlType(DataColumn)
Determines whether the type corresponding to the specified column is an SQL type.
Declaration
public static bool IsSqlType(this DataColumn column)
Parameters
System. The column which type is checked if it is an SQL type. |
Returns
System.
|
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
System. The row view in which the cell is located. |
System. The column in which the cell is located. |
System. The value to set as the new value of the cell. |