TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
venkat
NA
138
51.6k
how to add one column before generate table
Aug 16 2018 2:12 AM
Hi all,
The below code will generate table and i binded to the excel it is working fine .
public static DataTable GetTable()
{
// Here we create a DataTable with four columns.
DataTable table = new DataTable("Example Values");
table.Columns.Add("tyu", typeof(string));
table.Columns.Add("wer", typeof(int));
table.Columns.Add("adf", typeof(string));
// Here we add DataRows.
table.Rows.Add("lkj", "oip", "hn");
table.Rows.Add("hj", "hj", "yuu");
return table;
}
output :
above output is fine but here i need to small change like wants to add some text on top of the table.
i want to add one column on top of the table
Reply
Answers (
2
)
How can get data from multiple table in data table
DetailsView Email Configuration