.NET news » Search results

Search results for query "gridview" (24):

Gridview inside Gridview in asp.net C#

Gridview inside Gridview in asp.net C# or Nested Gridview and Update , Delete from Gridview
2011-05-27 20:36:00   Source: Gridview inside   Tags: ASP.NET

Group GridView Data

A custom GridView control which provides you an additional facility to group the data in gridview along with the facility to customise the Group Header and Group Footer
2010-10-05 07:05:00   Source: Group GridView Data   Tags: Components

Paging, Selecting, Deleting, Editing and Sorting in the ASP.NET GridView Control with Keyboard Shortcuts

An ASP.NET 2.0 AJAX Extender to enhance the ASP.NET GridView to page, select, delete, edit and sort rows with keyboard shortcuts.

Using TemplateFields in the GridView Control (C#)

This tutorial examines how to use TemplateField to achieve a greater degree of customization with GridView. This tutorial looks also at another way to customize the formatting based on underlying data: by calling formatting methods from within a template.
2007-02-22 18:11:15   Source: Using TemplateFields in the GridView...   Tags: ASP.NET

LINQ TO SQL GridView (Enahanced Gridview)

LINQ TO SQL Enahanced Gridview

Master/Detail Using a Selectable Master GridView with a Details DetailView

The fiinal tutorial on master/detail reports. We'll look at how to display a list of products in a GridView where each row has a Select button. Clicking the Select button will display that product's details in a DetailsView control on the same page.

Checking All Checkboxes in a GridView Using jQuery

In May 2006 I wrote two articles that showed how to add a column of checkboxes to a GridView and offer the ability for users to check (or uncheck) all checkboxes in the column with a single click of the mouse. The first article, Checking All CheckBoxes in a GridView, showed how to add "Check All" and "Uncheck All" buttons to the page above the GridView that, when clicked, checked or unchecked all of the checkboxes. The second article, Checking All CheckBoxes in a GridView Using Client-Side Script and a Check All CheckBox, detailed how to add a checkbox to the checkbox column in the grid's header row that would check or uncheck all checkboxes in the column. Both articles showed how to implement such functionality on the client-side, thereby removing the need for a postback.

The JavaScript presented in these two previous articles still works, but the techniques used are a bit antiquated and hamfisted given the advances made in JavaScript programming over the past few years. For instance, the script presented in the previous articles uses server-side code in the GridView's DataBound event handler to assign a client-side onclick event handler to each checkbox. While this works, it violates the tenets of unobtrusive JavaScript, which is a design guideline for JavaScript programming that encourages a clean separation of functionality from presentation. (Ideally, event handlers for HTML elements are defined in script.) Also, the quantity of JavaScript used in the two previous articles is quite hefty compared to the amount of code that would be needed using modern JavaScript libraries like jQuery.

This article presents updated JavaScript for checking (and unchecking) all checkboxes within a GridView. The two examples from the previous articles - checking/unchecking all checkboxes using a button and checking/unchecking all checkboxes using a checkbox in the header row - are reimplemented here using jQuery and unobtrusive JavaScript techniques.

2010-12-07 18:00:00   Source: Checking All Checkboxes in a   Tags: Examples

ASP.NET GridView ASCII and Numeric Sorting

ASCII and numeric sorting in the ASP.NET GridView
2011-01-27 18:52:00   Source: ASP.NET GridView ASCII and Numeric...   Tags: ASP.NET

Practical Guide for creating HyperLinkField in GridView in ASP.NET

This Article is a step by step approach to create

Sorting a Grid of Data in ASP.NET MVC

Last week's article, Displaying a Grid of Data in ASP.NET MVC, showed, step-by-step, how to display a grid of data in an ASP.NET MVC application. Last week's article started with creating a new ASP.NET MVC application in Visual Studio, then added the Northwind database to the project and showed how to use Microsoft's Linq-to-SQL tool to access data from the database. The article then looked at creating a Controller and View for displaying a list of product information (the Model).

This article builds on the demo application created in Displaying a Grid of Data in ASP.NET MVC, enhancing the grid to include bi-directional sorting. If you come from an ASP.NET WebForms background, you know that the GridView control makes implementing sorting as easy as ticking a checkbox. Unfortunately, implementing sorting in ASP.NET MVC involves a bit more work than simply checking a checkbox, but the quantity of work isn't significantly greater and with ASP.NET MVC we have more control over the grid and sorting interface's layout and markup, as well as the mechanism through which sorting is implemented. With the GridView control, sorting is handled through form postbacks with the sorting parameters - what column to sort by and whether to sort in ascending or descending order - being submitted as hidden form fields. In this article we'll use querystring parameters to indicate the sorting parameters, which means a particular sort order can be indexed by search engines, bookmarked, emailed to a colleague, and so on - things that are not possible with the GridView's built-in sorting capabilities.

Like with its predecessor, this article offers step-by-step instructions and includes a complete, working demo available for download at the end of the article. Read on to learn more!

2010-12-21 18:00:00   Source: Sorting a Grid of Data in ASP.NET MVC   Tags: Build