Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
How can I call this code on button click?
Shovan Saha
7y
186
1
Reply
int SlNo = 0;
var groupedData = from b in datatable.AsEnumerable()
group b by b.Field<string>("Item") into g
select new
{
SlNo = ++SlNo,
Item = g.Key,
TotalPrice = g.Sum(x => x.Field<int>("Price"))
};
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
how to write the exception with out change of the code in as
error while sending post request in angular