Closed

mvc datatablerow grouping c#

i have this code and i need to make a group heading by department and then list the item number each department and the sum of the amount

ListtoDataTable lsttodt = new ListtoDataTable();

DataTable dt = [login to view URL](DeptSalesLists);

Session["dtSalesByDepartmentExport"] = dt;

if ([login to view URL] > 0)

{

[login to view URL]("<table class='table table-striped table-bordered table-hover dt-responsive' width='100%' id='sample_1' cellspacing='0' width='100%'>");

[login to view URL]("<thead>");

[login to view URL]("<tr>");

[login to view URL]("<th class='all' style='text-align: right'>ItemName</th>");

[login to view URL]("<th class='all'>Department</th>");

[login to view URL]("<th class='min-tablet' style='text-align: right'>Quantity</th>");

[login to view URL]("<th class='min-tablet' style='text-align: right'>Amount</th>");

[login to view URL]("</tr>");

[login to view URL]("</thead>");

[login to view URL]("<tbody>");

for (int i = 0; i < [login to view URL]; i++)

{

[login to view URL]("<tr>");

[login to view URL]("<td style='text-align: right'>" + [login to view URL]([login to view URL][i]["ItemName"]).ToString() + "</td>");

[login to view URL]("<td>" + [login to view URL]([login to view URL][i]["Dept_ID"]).ToString() + "</td>");

[login to view URL]("<td style='text-align: right'>" + [login to view URL]([login to view URL][i]["ASQuantity"]).ToString("F2") + "</td>");

[login to view URL]("<td style='text-align: right'>" + [login to view URL]([login to view URL][i]["TotalPrice"]).ToString("C", usaCulture) + "</td>");

[login to view URL]("</tr>");

}

[login to view URL]("</tbody>");

[login to view URL]("</table>");

}

else

{

[login to view URL]("<center>No data available in table</center>");

}

return Content([login to view URL]());

Skills: C# Programming, .NET, ASP.NET, MVC, JavaScript

See more: code need paste craigs list, jippii pool code need, demonoid code need, need rap group, code compare excel group field net, code project make chat room asp net, code project make kundali windows application, code send email group people, file zip code php make pade login mysqlinsert, make group scrap orcut, make group scrap orkut, make group webform drupal, code need white background, i need a matlab and c code is to be written, i need a matlab and c++ code is to be written, c# code to make a phone call, how to make a sharepoint list item read-only, how to make c++ code faster, mvc example c# code project, how to write c# code in mvc view

About the Employer:
( 42 reviews ) Jamaica, United States

Project ID: #30908697

15 freelancers are bidding on average $33 for this job

(64 Reviews)
7.1
(21 Reviews)
4.6
sheikh147

Hi... I hope you are fine and in good health with the COVID-19 situation globally. I've read the job description and I've previous Experience related to your job. I am an Experienced Desktop and Web Applications Deve More

$30 USD in 7 days
(22 Reviews)
4.2
Sandeep2805

Hello. Dear Client! I'm a C/C++/C# expert with over 10 years of experience. I have developed many C++ projects. I wanna work with you for a long term. Please ping me and discuss this in detail. Best Regards.

$30 USD in 1 day
(8 Reviews)
3.7
habib9861

Hi, hope you are doing great, I have been a professional developer for more than 6 years, I have great expertise in Asp.net web forms as well as MVC with web services using asmx and WCF and Rest APIs as well. I have al More

$30 USD in 2 days
(22 Reviews)
4.0
delahoussayec

Hello there, I read your project descriptions. I understood the project's requirements very well. I can do your project as well as possible in the shortest time possible. I have developing experience with Laravel, PHP More

$125 USD in 15 days
(1 Review)
1.9
Work12345x

Hi, I am a very talented software programmer with 12+ years of development experience (4+ years professional work experience). I am a results-oriented professional and possess experience using cutting-edge development More

$20 USD in 1 day
(2 Reviews)
1.5
spriyasharma57

Hi I am a certified c# programmer and having 3+ years of experience in various .net technologies like asp.net mvc, webapi, webforms, angular etc. I understood your task and I can start immediately on the task. pleas More

$15 USD in 5 days
(2 Reviews)
1.4
bluestack333

Hi, how are you doing now? I have full skill in ASP.NET and SQL Server. I have read you with care and assure that I can do your task with high quality. Hope to chat you. Thx.

$50 USD in 1 day
(1 Review)
0.9
artsiom1liaver

✋Hi there! I've checked your requirements and I am interested to assist you on the project with fulfilling all of the required functioning very accurately and precisely. I am available 24x7 here, so just hit me a mess More

$20 USD in 7 days
(0 Reviews)
0.0
surmi20

Hi i have 3 years expereince in ASP.Net development and javascript and 4 years in C# I can do this if assigned

$20 USD in 5 days
(0 Reviews)
0.0
drissassakrar98

Hello, I checked your requirement doc and no problem for me, I have a whole time to work on your project and will deliver perfect result with clean code in 2 days , I won't require release payment before I complete y More

$14 USD in 2 days
(0 Reviews)
0.0
Geetanjali01984

Dear Sir, I have 4 years experience in ASP .NET and C#,SQL Sever ,SSIS.I would be wonderful if you provide me the opportunity to work on your project . [login to view URL]

$10 USD in 7 days
(0 Reviews)
0.0
ssenthilnathan12

Dotnet full-stack application developer who has around 10 years of experience in various phases of software development lifecycle & web application development. Hands on experience in ASP.NET MVC, ASP.NET WEB API, .NET More

$25 USD in 3 days
(0 Reviews)
0.0
IntelliJens

Hm It does look like you have taken a very long way around this. I would recommend using a model solution (in this case an array of objects) via your controller. Do you store the data in a database or some local file? More

$30 USD in 7 days
(0 Reviews)
0.0