.NET news » Search results

Search results for query "gridview" (15):

Some Tips and Tricks for using an ObjectDataSource with a Gridview

This article uses a generic collection as the data source for the Gridview. Some code is requried to get the sorting to work. There is an examples of using the pager template along with a simple Gridview printer.

GridView Sort Indicator Component

This article presents a component that is used to add a sort indication image to GridView columns.

The Internet provides a lot of sites that show how you can add some sort of sort indicator to a GridView, but all do this for a single GridView. Our application has quite a lot of GridViews that need this feature and therefore I decided that a component would be the right way to go. A component has the advantage that I have to code the behaviour just once and not for every single GridView over and over again.

The rest of this article shows you how you can use the GridViewSortExtender (that's the name of the component) and how it work on the inside.

2007-08-06 04:20:00   Source: GridView Sort Indicator Component   Tags: ASP.NET Components

Playing with the GridView PagerBar

Extend GridView.PagerBar while preserving its functionality and add a drop-down to change the page size
2007-06-20 15:57:00   Source: Playing with the GridView PagerBar   Tags: VB.NET

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 Control (C#)   Tags: ASP.NET

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.
2007-02-08 14:10:10   Source: Master/Detail Using a Selectable Master GridView with a...   Tags: ASP.NET

GridThemes

GridThemes is a collection of classes for ASP.NET 2.0 which allows for the application of conditional formatting to one or more GridView controls using declarative constructs. Typically, a developer would trap a grid's RowDataBound event to apply conditional formatting. With GridThemes however, a page designer may set a single property to change this grid. The framework is useful when conditional cell-by-cell formatting is necessary, or to apply such formatting consistently throughout a project. It is also useful when AutoGenerateColumns is applied on a GridView and column formatting is otherwise unavailable.
2007-03-04 10:24:00   Source: GridThemes   Tags: ASP.NET

GridView Enhancements and Fixes

Enhancements and Fixes that add features like more control over column widthes and preventing wrapping.
2008-06-23 08:51:00   Source: GridView Enhancements and Fixes   Tags: ASP.NET

Custom Formatting Based Upon Data (C#)

The appearance of the GridView, DetailsView, and FormView controls can be customized through myriad style-related properties. Properties like CssClass, Font, BorderWidth, BorderStyle, BorderColor, Width, and Height, among others, dictate the general appearance of the rendered control. Properties including HeaderStyle, RowStyle, AlternatingRowStyle, and others allow these same style settings to be applied to particular sections. Likewise, these style settings can be applied at the field level.

In many scenarios, though, the formatting requirements depend upon the value of the displayed data. For example, to draw attention to out of stock products, a report listing product information might set the background color to yellow for those products whose UnitsInStock and UnitsOnOrder fields are both equal to 0. To highlight the more expensive products, we may want to display the prices of those products costing more than $75 in a bold font.

Adjusting the format of the GridView, DetailsView, or FormView based upon the data bound to it can be accomplished in multiple ways. In this tutorial, we'll look at how to accomplish data bound formatting through the use of the DataBound and RowDataBound event handlers. In the next tutorial we'll explore an alternative approach...

2007-02-22 18:01:59   Source: Custom Formatting Based Upon Data (C#)   Tags: ASP.NET

DataGridView vs. DataGrid

The DataGridView Windows Forms control is a new .NET control introduced in MS Visual Studio .NET 2005 that is a good alternative to the VS .NET 1.x DataGrid control.

Within the DataGridView .NET 2.x control the data table presentation features became much easier to implement in .NET Windows application. The most attractive features of the new control are:

  • It allows for the mix both data bound and unbound, virtual columns in the GridView.
  • It has a special virtual mode allowing for the display of more than 100.000 rows without a huge performance hit.
  • Individual columns, rows, cells or an entire data source can easily be styled.

2007-02-12 08:43:03   Source: DataGridView vs. DataGrid   Tags: GUI

Exploring Secrets of the .NET DataGridView and Dynamic Data Manipulation

Find out how to use a single DataGridView to display dynamic queries, adjusting columns automatically, and how to format individual cells exactly the way you want users to see them.
« Previous12Next »