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
Ilkin Turk
NA
349
161.3k
c# DataTable
Mar 30 2013 12:34 PM
Hello
How to select "Amount" column from dt1 by dt2 "Name " column and add to dt2 ?
DataTable dt1 = new DataTable();
dt1.Columns.Add("Name",typeof(String));
dt1.Columns.Add("Surname",typeof(String));
dt1.Columns.Add("Amount",typeof(Int32));
dt1.Rows.Add("Mike","Michael",5);
dt1.Rows.Add("Tom", "Alice", 4);
dt1.Rows.Add("Jon", "Miri", 3);
dt1.Rows.Add("John", "Michael", 10);
DataTable dt2 = new DataTable();
dt2.Columns.Add("Name", typeof(String));
dt2.Columns.Add("Amount",typeof(Int32));
dt2.Rows.Add("Mike","");
dt2.Rows.Add("Tom", "");
dt2.Rows.Add("Jon", "");
dt2.Rows.Add("John", "");
Thanks in advance.
Reply
Answers (
2
)
about crystal report
.net framework 4.5