16 items found in the WebGrid Category

Adding a New Row In The Razor WebGrid

Thursday, January 23, 2014 8:10 AM

ASP.NET Web Pages WebMatrix Razor WebGrid

The Razor WebGrid isn't just used for displaying data. I have already looked at how to edit data inline within the WebGrid, so this article looks at how to add new rows of data. within a rendered grid.

Click to read more about Adding a New Row In The Razor WebGrid ...

Viewed 21637 times

2 Comments for this item

Adding A Footer To The Razor WebGrid

Monday, February 25, 2013 7:43 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

Whether you are using the Razor WebGrid in an ASP.NET Web Pages site, or an MVC application, you may well want to display tabular data at some point in which case you are likely to turn to the Razor WebGrid helper. And if you want to do that, you might also want to add a footer to the rendered table. Here are some ways that you can accomplish that task.

Click to read more about Adding A Footer To The Razor WebGrid ...

Viewed 43873 times

0 Comments for this item

Exporting The Razor WebGrid To Excel Using OleDb

Monday, January 7, 2013 8:38 PM

ASP.NET Web Pages WebMatrix WebGrid

This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to an Excel file using OleDb.

Click to read more about Exporting The Razor WebGrid To Excel Using OleDb ...

Viewed 8968 times

8 Comments for this item

Exporting The Razor WebGrid To PDF Using iTextSharp

Thursday, December 20, 2012 1:31 PM

iTextSharp ASP.NET Web Pages WebMatrix Razor WebGrid

This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to a PDF file using the popular free PDF library, iTextSharp.

Click to read more about Exporting The Razor WebGrid To PDF Using iTextSharp ...

Viewed 23178 times

9 Comments for this item

Exporting The Razor WebGrid To Excel

Monday, December 17, 2012 8:17 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to an Excel file.

Click to read more about Exporting The Razor WebGrid To Excel ...

Viewed 18081 times

2 Comments for this item

Enhancing The WebGrid With Sort Arrows

Friday, December 14, 2012 7:24 PM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

The Web Pages WebGrid offers sorting capability out of the box. However, it's not always obvious to the user on which column the grid data is being sorted at any one time, nor the direction in which it is being sorted. The convention is to provide arrows in the column header to act as a clear visual cue. This article looks at a three ways in which you can enhance your grids with sorting arrows.

Click to read more about Enhancing The WebGrid With Sort Arrows ...

Viewed 23113 times

3 Comments for this item

Inline Editing With The WebGrid

Tuesday, November 13, 2012 10:37 AM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

Unlike the Web Forms GridView control, the Web Pages WebGrid doesn't offer anything by way of inline editing capability. This article looks at one approach to solving that requirement through the addition of a sprinkling of jQuery.

Click to read more about Inline Editing With The WebGrid ...

Viewed 35539 times

23 Comments for this item

The WebGrid - Efficient Paging And Sorting With SQL CE 4.0

Sunday, August 28, 2011 10:46 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

A problem inherent in the existing version of the WebGrid is that it is not very efficient when it comes to paging data out of the box. If you have 10,000 rows of data, and you want to display 10 rows per page, all 10,000 rows are retrieved from the database for each page. The grid works out how to only show the current 10, and wastes the other 9,990 rows. That's a fair sized overhead on each page. Ideally, you should only retrieve the data you need for each page. This article examines how you can do that with the existing WebGrid and a SQL CE database, while still maintaining sorting capabilities.

Click to read more about The WebGrid - Efficient Paging And Sorting With SQL CE 4.0 ...

Viewed 15643 times

9 Comments for this item

Displaying Search Results In A WebGrid

Saturday, August 27, 2011 4:57 PM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

A number of people have run into problems when trying to combine a search or filter form, and a WebGrid. The main issue that arises is when paging or sorting the search result or a filtered subset of it. Here, I look at the cause of the problem and what you can do about it.

Click to read more about Displaying Search Results In A WebGrid ...

Viewed 35517 times

11 Comments for this item

How To Maintain Scroll Position When Paging Or Sorting A WebGrid

Tuesday, August 23, 2011 9:13 PM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

This snippet is one in a series showing how to use jQuery to enhance the behaviour of a Web Pages WebGrid. This example shows how to maintain scroll position on the page when paging or sorting the WebGrid.

Click to read more about How To Maintain Scroll Position When Paging Or Sorting A WebGrid ...

Viewed 19091 times

3 Comments for this item

How To Make A WebGrid Row Clickable

Tuesday, August 23, 2011 11:23 AM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

This snippet is one in a series showing how to use jQuery to enhance the behaviour of a Web Pages WebGrid. This example shows how to make an entire row clickable so that the user is taken to another page that displays details of the selected row.

Click to read more about How To Make A WebGrid Row Clickable ...

Viewed 58308 times

7 Comments for this item

WebMatrix and jQuery Forms Part 2 - Editing Data

Saturday, August 6, 2011 5:33 PM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

This article continues on from one I wrote a while ago, showing how to use jQuery to create a data entry form in conjunction with the WebGrid. The original article prompted a number of requests to show how to extend the example to provide editing functions, and now I have found some time to answer those requests.

Click to read more about WebMatrix and jQuery Forms Part 2 - Editing Data ...

Viewed 19087 times

3 Comments for this item

Why You Can't Use Extension Methods With A WebGrid

Thursday, January 27, 2011 12:58 PM

Extension Method ASP.NET Web Pages WebMatrix WebGrid

An interesting question came up recently on the ASP.NET forums. In it, the questioner was attempting to use my Chop() extension method to limit the number of characters in a WebGrid column but it wouldn't work. At first, I was a little stumped, so I tried it myself and got an error message:

Click to read more about Why You Can't Use Extension Methods With A WebGrid ...

Viewed 9808 times

2 Comments for this item

The WebGrid Helper - Making Selections

Thursday, January 13, 2011 2:08 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

The WebGrid helper, introduced via ASP.NET Web Pages, provides a means for displaying tabular data easily. This article examines how to enable selection within the WebGrid at row level.

Click to read more about The WebGrid Helper - Making Selections ...

Viewed 24919 times

6 Comments for this item

WebMatrix And jQuery Forms

Tuesday, August 10, 2010 5:23 PM

jQuery ASP.NET Web Pages WebMatrix WebGrid

Even though WebMatrix is still in its first Beta, there have been a few requests in forums already for examples illustrating how to create Web Pages forms powered by AJAX. Building on previous articles, I thought I'd put together a little sample that shows how to do this to add a record to a database using jQuery. Here's how it's done.

Click to read more about WebMatrix And jQuery Forms ...

Viewed 49784 times

12 Comments for this item

Recent Comments

Allen Michaels 12/17/2014 4:37 PM
In response to Cascading DropDownLists with jQuery and ASP.NET
Fantastic thank you so much!...

Emily 12/17/2014 12:36 PM
In response to Parameterized IN clauses with ADO.NET and LINQ
Thanks, very helpful!!!! Can i use this for multiple in's ????? IN (.....) and IN(...) and IN...

sss 12/16/2014 3:06 PM
In response to Solving the Operation Must Use An Updateable Query error
good...

Gjuro 12/15/2014 10:30 PM
In response to Examining the Edit Methods and Edit View
You have one fromr (and it should be from, I suppose). :-)...

Gjuro 12/15/2014 10:27 PM
In response to Adding Search
Hi, thnx for all this C#->VB translations. Yet, the following code block is (slightly) in error it a...

Scot 12/14/2014 1:39 PM
In response to Entity Framework 6 Recipe - Alphabetical Paging In ASP.NET MVC
Thanks,Mike I found solution....

Gjuro 12/13/2014 10:52 PM
In response to Accessing Your Model's Data from a Controller
The article mentions "Creating an Entity Framework Data Model for an ASP.NET MVC Application" (at is...

Samuel 12/13/2014 8:40 AM
In response to Displaying The First n Characters Of Text
I have failed to use the extension because it throws an error that it doesn't recognise the chop be...

Ignas 12/12/2014 5:11 PM
In response to Cleaner Conditional HTML Attributes In Razor Web Pages
Any suggestions for Html Helper elements with HtmlAttributes, when you need to conditionally set it...

Gautam 12/11/2014 8:50 PM
In response to Validation In Razor Web Pages 2
Hi Mike Is this required for V3, non html helper input...