Blog author:
Jvprabhusanthi | Posted on: 5/3/2012 | Category:
C# Blogs | Views: 536 | Status:
[Member] |
Points: 75
|
Alert Moderator
Here is the code to grab the column name from the datatable and push it or recreate the same columns in another datatable.foreach(DataColumn dc in objDatatable .Columns )
{
dtNew.Columns.Add(dc.ColumnName; } Cheers, Venkatesan Prabu .J Head, kaaShiv InfoTech Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
http://kaashivinfotech.com/Ebooks.aspx
Found interesting? Add this to: