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
Nizam Nizam
NA
32
21k
how to show grand total in view mvc4
Mar 7 2015 12:17 AM
after 2 LKG row i need a row there is first column TOTAL and the boys down i need a total boys count and girls column down there TOTAL girls count next Grand Total
how to set like that
like that i want all diffrnt classes
<table class="table table-bordered">
<thead>
<tr>
<th>Class</th>
<th>Division</th>
<th>Boys</th>
<th>Girls</th>
<th>Total</th>
</tr>
</thead>
@foreach (var divcls in dc)
{
var students = Model.Where(S => ((S.Stud_Status.FirstOrDefault(A => A.AcademicYearId == SessionValues.Current.AcademicYear.AcademicYearId) ?? new Stud_Status()).Sett_DivisionsInClasses ?? new Sett_DivisionsInClasses()).DivInClassId == divcls.DivInClassId).ToList();
var Btotal = students.Count(b => b.Gender == "M");
var Ftotal = students.Count(f => f.Gender == "F");
var Total = students.Count;
<tr>
<td>@divcls.Sett_Classes.ClassName</td>
<td>@divcls.Sett_DivistionMaster.DivName</td>
<td>@Btotal.</td>
<td>@Ftotal</td>
<td>@Total</td>
</tr>
}
</table>
</div>
Reply
Answers (
0
)
what is this error in mvc4
How to URLRewrite in asp.net