Knowledge Transfer

Wednesday, May 13, 2009

Gridview ,Details View,Fromviews,Repeater,Datalist Controles in ASP.Net

GridView Control

The GridView control displays data as a table and provides the capability to sort columns, page through data, and edit or delete a single record. the GridView control offers improvements such as the ability to define multiple primary key fields, improved user interface customization using bound fields and templates, and a new model for handling or canceling events

DetailsView Control

The DetailsView control renders a single record at a time as a table and provides the capability to page through multiple records, as well as to insert, update, and delete records. The DetailsView control is often used in master-detail scenarios where the selected record in a master control such as a GridView control determines the record displayed by the DetailsView control.

FormView Control

The FormView control renders a single record at a time from a data source and provides the capability to page through multiple records, as well as to insert, update, and delete records, similar to the DetailsView control. However, the difference between the FormView and the DetailsView controls is that the DetailsView control uses a table-based layout where each field of the data record is displayed as a row in the control. In contrast, the FormView control does not specify a pre-defined layout for displaying a record. Instead, you create templates that contain controls to display individual fields from the record. The template contains the formatting, controls, and binding expressions used to lay out the form.

Repeater Control

The Repeater control renders a read-only list from a set of records returned from a data source. Like the FormView control, the Repeater control does not specify a built-in layout. Instead you create the layout for the Repeater control using templates.

DataList Control

The DataList control renders data as table and enables you to display data records in different layouts, such as ordering them in columns or rows. You can configure the DataList control to enable users to edit or delete a record in the table. The DataList control differs from the Repeater control in that the DataList control explicitly places items in an HTML table, where as the Repeater control does not.

Regards,
Uday.A

Labels: , , , ,

Monday, January 5, 2009

Datagrid Examples

To place a DataGrid on an ASP.NET Web page you simply need to add the following code:




Here the id you choose will be the name of the DataGrid you'll use when referring to it in your server-side code. The syntax above gets us started using a DataGrid by placing it in the HTML content, but in order to have the DataGrid display anything useful we need to bind the DataGrid to some collection of information. This collection of information can be any object that supports the IEnumerable interface. This includes things like Arrays, collection classes (ArrayList, Hashtable, etc.), DataSets, DataReaders, and a number of other objects. Since we'd like to focus on displaying database information, for this article we'll focus on binding DataGrids to DataReaders, which are synonymous to forward-only, firehose cursors Recordsets in classic ADO/ASP. (For more information on reading database results into DataReaders using ADO.NET be sure to read:

For furuther information http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

Happy Coding
Uday.Adidham

Labels: , , ,

Tuesday, December 9, 2008

Multilevel Nested Master/Detail Data Display Using GridView

This article presents how the GridView control can be nested to show master/detail relationships for multilevel hierarchal data. In this article, I have implemented it for three levels, and it can be implemented for n levels quite easily, by maintaining the information about the edit index of the parent GridView controls.

This article provides a simple, easy, and clean solution for displaying data with multilevel master/detail relationships. This article also shows how the GridView can be used effectively by using its template fields, and how controls inside template fields are accessed and bound. More importantly, you will realize the power of GridView's edit mode, and learn how it can be used to do things other than editing; evading from its default usage!!

parent and Child relation in Gridview in asp.net 2.0

Please Click here about more stuff Multilevel Nested Master/Detail Data Display Using GridView

Happy Coding,

Labels: , ,

Thursday, November 20, 2008

Faqs For Datagrid

How to implement smart paging in DataList control?

How to implement paging in DataList control?

How to apply custom formatting string to column values in GridView or DataGrid?

How to print grid data as PDF document?

Use AJAX with GridVies to show popup help messages

How to display BLOB images in GridView?

How to format data in GridView?

How to sort gridview and display image indicator in column header?

How to import CSV file into Grid?

How to highlight datagrid row? How to highlight gridview row? When mouse moves over the row.
How to access datagrid and gridview cell values on client side?

How to hide DataGrid Column? How to hide GridView Column?

How to raise server side event when datagrid and gridview row is selected?

How to highlight datagrid and gridview row when row is selected?

How to format GridView header? How to format DataGrid Header?

How to format GridView columns at run time?

How to set paging in GridView control - Simple usage at design time and runtime
setting of page size
How to format GridView rows at run time?

How to convert DataView To DataTable

Display Server User and Groups In DataGrid

How to add tool tips to ASP.Net DataGrid Headers

How to Format ASP.Net DataGrid Sorted Column Like Windows Explorer View

How to export ASP.Net DataGrid data to a CSV file

Embed ASP.Net DataGrid Inside Another DataGrid Control

Embed DataList Inside ASP.Net DataGrid Control

Simple use of DataGrid

Customize DataGrid Header

Customize DataGrid Items Appearance

Use AutoGenerateColumns attribute to control rendering of column

How to dynamically populate DropDownList

How to remove a column from DataGrid at runtime?

Conditional Formatting Of ASP.Net DataGrid Column

How to hide pager of a DataGrid Web Control at run time

Click here For Answers about that Questions Click Here

Labels: , , , , ,