C#.NET

C# ASP.NET - GridView : How to Use Checkbox in Gridview to Select Multiple Rows

2009-01-06
I wanted to select multiple rows of the grid view using check boxes to select each row.
In this post I will discus how and what I did to achieve this goal…
I used a template column which holds a check box to select or de-select a row in the grid view.
Adding a Template Column:
There are several [...]

ASP.NET - AutoPostBack : What is AutoPostBack and How AutoPostBack Works

2008-12-26

Today I was experimenting on a grid view where I was trying to select multiple rows of the grid view using a check box column.
I wrote some code in the CheckedChanged of checkbox but then I found that the code was not executed when the state of the checkbox is changed.
So I did a [...]

C# ASP.NET - GridView : How to Keep Modified Data of Template Fields when Paging is Enabled?

2008-12-04
Today I had to take care of a problem of a certain company (CIS) that I consult. They had a problem of keeping the values modified in a template field of a gridview when the user moves from one page of the grid to another.
Template fields allow us to add custom columns into a datagrid [...]