skip to main
|
skip to sidebar
Source Guru
Tuesday, September 22, 2009
Build DataTable
public static DataTable BuildDataTable(Dictionary
columns)
{
DataTable table = new DataTable();
foreach (KeyValuePair
pair in columns)
{
if (!table.Columns.Contains(pair.Key))
{
table.Columns.Add(pair.Key, pair.Value);
}
}
return table;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
November
(1)
September
(1)
August
(10)
October
(1)
April
(1)
March
(1)
February
(3)
September
(20)
Labels
application
(1)
Check Box
(2)
CSV
(2)
Data Table
(9)
DropDown
(1)
Export
(2)
File
(2)
IIS
(1)
Import
(1)
Search
(1)
SQL
(5)
SQL Function
(6)
SQL Query
(2)
SQL Server
(6)
View
(1)
The Code Project Latest Articles
Loading...
No comments:
Post a Comment