C# Class DataTableExtensions, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode Description
GetPropertiesForType ( ) : IList
SetColumnsOrder ( DataTable, dtbl ) : void

SetOrdinal of DataTable columns based on the index of the columnNames array. Removes invalid column names first.

http://stackoverflow.com/questions/3757997/how-to-change-datatable-colums-order

ToList ( DataTable table ) : IList

Private Methods

Méthode Description
CreateItemFromRow ( DataRow, row, IList properties ) : T,

Method Details

GetPropertiesForType() public static méthode

public static GetPropertiesForType ( ) : IList
Résultat IList

SetColumnsOrder() public static méthode

SetOrdinal of DataTable columns based on the index of the columnNames array. Removes invalid column names first.
http://stackoverflow.com/questions/3757997/how-to-change-datatable-colums-order
public static SetColumnsOrder ( DataTable, dtbl ) : void
dtbl DataTable,
Résultat void

ToList() public static méthode

public static ToList ( DataTable table ) : IList
table DataTable
Résultat IList