Skip to content

Instantly share code, notes, and snippets.

View steelheaddigital's full-sized avatar

Tom Mooney steelheaddigital

  • Portland, Oregon
View GitHub Profile
@steelheaddigital
steelheaddigital / ExampleUsage
Created July 30, 2012 23:01
An extension of the ASP.NET MVC WebGrid HTML helper to add a total row
In the ViewModel or Controller, create a new TotalWebGrid and return it to the view, just like with the normal WebGrid.
public TotalWebGrid Grid
{
get
{
return new TotalWebGrid(
source: stagingBillLines,
rowsPerPage: 10,
ajaxUpdateContainerId: "BillLines");