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.Data.DataRowView
rowView
The row view in which the cell is located. |
System.Data.DataColumn
column
The column in which the cell is located. |
Returns
System.Object
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.Data.DataTable
table
The table. |
Returns
System.ComponentModel.PropertyDescriptorCollection
|
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.Data.DataColumn
column
The column which type is checked if it is an SQL type. |
Returns
System.Boolean
|
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.Data.DataRowView
rowView
The row view in which the cell is located. |
System.Data.DataColumn
column
The column in which the cell is located. |
System.Object
value
The value to set as the new value of the cell. |