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
Reylin Mathew
NA
347
76.1k
how to convert linq list to datatable
Jun 19 2019 3:49 AM
this is my code
ataTable dt = new DataTable();
dt = ds.Tables[0];
var result = from r in dt.AsEnumerable()
group r by new { ID = r.Field<decimal>("ID"), time1 = r.Field<DateTime>("DATE") } into IdGroup
let row = IdGroup.First()
select new
{
ID = IdGroup.Key,
DATE = row.Field<DateTime>("DATE"),
CODE = row.Field<string>("CODE"),
NAME = row.Field<string>("NAME"),
NUMBER = row.Field<decimal?>("NUMBER"),
NAME = row.Field<string>("NAME"),
AMOUNT = row.Field<decimal>("AMOUNT")
};
var dtdata=result.ToList();
how to convert datatable.
thnkx in adva
Reply
Answers (
5
)
Export Html table in PDF
convert datatable to dataset?