Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Saturday, November 22, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > C-Sharp > Server Controls > DataGrid Control
Search:
What's New - What's Hot


Nested GridView with TreeView Like Structure        
Total Hits: 110  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

Displaying hierarchical data is a common feature practiced by many websites. Hierarchical data can be displayed in many different ways. In this article we will learn how to display nested data using nested GridView controls. The domain model is really simple and consists of two entities, Category and Products. A single category can have multiple products hence producing the one-to-many relationship. This article does not contain any persistent storage like database or xml files and the entities ...

Customized Buttons in Web Application DataGrids        
Total Hits: 140  |  Today: 0 Author: johnsaxton@yahoo.com       Rating:  
Read Reviews | Write Review |   Your Rating: 

I wanted to add buttons to my DataGrid, but I didn't want a button on each line that said 'Edit' or 'Update'. I wanted each button's text value to vary based on cell contents. It just seems more intuitive and less amateurish to use data to populate the buttons as opposed to creating dozens of buttons all of which carry the same text. Why have an 'Edit' button next to some cell value when the cell could contain the button?...

Implementing Custom DataGrid Selection Column Step by Step        
Total Hits: 223  |  Today: 0 Author: Muhammad Abubakar Dar       Rating:  
Read Reviews | Write Review |   Your Rating: 

Purpose of this article is to demonstrate architecture of data grid TemplateColumn class using an example implementation of data grid custom selection column. So, one should be able to design more complex custom columns easily...

Confirmation during a Datagrid column deletion        
Total Hits: 298  |  Today: 0 Author: mosessaur       Rating:  
Read Reviews | Write Review |   Your Rating: 

DataGrid Web Server Control is one of the rich server control in Asp.Net, it gives you
a lot of functionality that make the world easy when trying to use it.
One of these features is delete column that is used to delete items in the database table
listed in the DataGrid. To be able to use delete command column in the DataGrid, you have
to write and event handler for the DeleteCommand Event in you CodeBehind. That code
is really simple, but.. When you attempt to delete, it will jus...

GridView Custom Paging with PageSize Change Dropdown        
Total Hits: 149  |  Today: 0 Author: Saifi Hasan       Rating:  
Read Reviews | Write Review |   Your Rating: 

The GridView is a very powerful control and has all the features including paging/sorting etc. But while using GridView in your project, you have to assign the PageSize property of the GridView programmatically, which users then cannot change. Sometimes, users require the feature to change the page size so that they could view more/less records per page. With one of my projects, I was asked to develop such a control with custom paging. I am sharing this with you so that you don't have to rework ...

Column Header CheckBox in DataGridView (Winfoms)        
Total Hits: 159  |  Today: 0 Author: Ramana. G.V       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article will explains about creating & displaying Column Header CheckBox in winforms DataGridView.
Bydefault DataGridView doen't supports column header chekbox, for this we need to write a class which is inherited by DataGridViewColumnHeaderCell class.
1) Add a boolean propery named CheckAll in that class to maintain the seleced state of Header checkbox.
2) override default implemention of Paint method. In this method, drawing the CheckBox at column Header....

Check/uncheck CheckBox in a GridView using Javascript        
Total Hits: 299  |  Today: 0 Author: farazsk11       Rating:  
Read Reviews | Write Review |   Your Rating: 

Check/uncheck CheckBox control inside a GridView using javascript without postback. This article will give an idea on how to achieve this task. Some sample code is provided under Using the code heading and complete code is available in the project download. (Forums are flooded with the questions about how to check/uncheck CheckBox control inside a GridView using javascript without postback....

A Master Detail DataGrid        
Total Hits: 160  |  Today: 0 Author: xicoloko       Rating:  
Read Reviews | Write Review |   Your Rating: 

Most of the examples that show a Master/Detail DataGrid do it using nested ListControls. This article shows how to accomplish the same using only a DataGrid-derived class.
The DataGrid shows exactly the number of rows that its DataSource has. Suppose you have the following need: show orders grouped by customers, but before a order from a new customer you show the customer details....

GridView Custom Paging        
Total Hits: 161  |  Today: 0 Author: azamsharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

The GridView control provides you with an easy way to display the number of items on a page without taking much space, with the help of paging. You can enable the paging feature in the GridView control in seconds. The built-in paging is pretty good if you are fetching less than 100 items. As soon as the number of items increases, the performance suffers. The main reason for the performance kill is that whenever you go to a new page of the GridView, it fetches all the items from the database. In ...

Grid Inside a Grid - Nested Grid in C#        
Total Hits: 210  |  Today: 0 Author: Gigy       Rating:  
Read Reviews | Write Review |   Your Rating: 

This code snippet will help to create a Nested Grid. The sub grid depends on the each row element in the parent grid control.
I had a requirement to load all acounts of an enrolled user in a grid control for a financial project. Some of the accounts have sub accounts which has to be loaded/ shown as a sub elements to that account. Even though several sites gives an idea to create the sub grids, but none of them was prefect match....

Client Side Validation for a Checkbox in DataGrid        
Total Hits: 206  |  Today: 0 Author: jebarson       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article provides the code to add a checkbox in a DataGrid, and thereby allows you to check or uncheck all the checkboxes in the DataGrid using JavaScript.
I really had a very hard day Googling for code to check/uncheck all the checkboxes in a DataGrid using JavaScript. I had an option to do it on the server side, but to check all the records in a DataGrid on the server-side, I will have to reload the web page from the server; sounds crazy, doesn’t it? So finally, I sat down and wrote the...

How to collapse and expand rows of a datagrid using C#, ASP.NET, and Javascript. (Version 2)        
Total Hits: 186  |  Today: 0 Author: Rajib A.       Rating:  
Read Reviews | Write Review |   Your Rating: 

HGrid stands for Hierarchy Grid. This grid is meant to hold data using a datagrid/table, and present it to users in a fashionable manner....

Generic DataGridView V2.0        
Total Hits: 156  |  Today: 0 Author: Yildirim Kocdag       Rating:  
Read Reviews | Write Review |   Your Rating: 

GenericDataGridView is a new control which is more flexible for coding than a simple datagrid. However, there are a lot of developers who are facing diffulties about DataGridView Calendar, Mask, ComboBox and also Validations. Actually, GenericDataGridView does not support such as important properties....

GridView Edit, Update, Delete, Paging, Sorting Using DLINQ        
Total Hits: 486  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

Microsoft DLINQ is part of the .NET 3.5 framework. DLINQ allows the developer to iterate through data sources which includes SQL SERVER databases. In this article I will demonstrate how you can use DLINQ to perform editing, updating, paging, sorting and deleting operations on the GridView control....

Maintain State of the Selected Radio Button Inside the GridView        
Total Hits: 155  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

Sometime ago I wrote an article in which I discussed how to get the selected value of a radio button control which resides inside the GridView control. You can read the article here. In this article I will demonstrate how to maintain the state of the selected HTML radio button across postbacks....

Repository Factory, GridView and ObjectDataSource with WebService Layer        
Total Hits: 83  |  Today: 0 Author: Peter Bromberg       Rating:  
Read Reviews | Write Review |   Your Rating: 

Repository Factory tutorial with WebService layer feeding an ObjectDataSource and GridView on a web page....

Nested GridView Grouping and Displaying SubTotals and GrandTotals        
Total Hits: 298  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

I was working on a project where I needed to display some reports based on the employee's daily work. The report should consist of an employee check in time, check out time, no of hours worked for each day and also the total hours worked. The task can be accomplished in number of ways which includes using the Crystal Reports or SQL SERVER Reporting Services but I thought I should use Nested GridView to achieve the desired result. In this article I will demonstrate how to use the Nested GridView ...

ustom DataGrid With Next, Previous, First, Last, and Numeric Paging        
Total Hits: 268  |  Today: 0 Author: saifi hasan       Rating:  
Read Reviews | Write Review |   Your Rating: 

In one of my web projects, the requirement was such that the pager should have numeric paging as well as links for previous, next, first, and last pages. The DataGrid did not directly support this type of layout; that's why I have developed my custom DataGrid that can be used throughout....

How to highlight datagrid or GridView row on mouse over?        
Total Hits: 492  |  Today: 0 Author: netomatix       Rating:  
Read Reviews | Write Review |   Your Rating: 

In this article I will be discussing how you can highlight a row in datagrid or grid view when mouse moves over a row. The article uses technique of adding handlers for onmouseover and onmouseout javascript events for the row. In the event handlers the style sheet for the row is switched to highlight the row and when mouse moves out, the style sheet is switched back to normal....

How to access gridview cell values on client side        
Total Hits: 284  |  Today: 0 Author: netomatix       Rating:  
Read Reviews | Write Review |   Your Rating: 

If you are seeing this section and do not see download links, this means that you are not logged into our site. If you already are a memeber, click on the login link and login into site and come back to this page for downloading the control files. If you are not a member, click on registration link to become a Winista member and download the control for free....


1  2  3  4  5  6  7  Next >> 


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net