C# ASP.NET – GridView : How to Use Checkbox in Gridview to Select Multiple Rows
I moved my site to its own domain. Please use following link for the information you are looking for:
Like this:
January 6, 2009 - Posted by Menol | ASP.NET, C#.NET, GridView, Menol, Select Multiple Rows, Web Development | add a template field to a gridview, Add button, Add New Column..., Adding a Checkbox to the Template Column, Adding a Template Column, Adding a Template Column to gridview, ArrayList, ASP.NET, Available fields, BoundField, C#, C#.NET, Checkbox Tasks, checked property of checkbox, columns, Control Control.FindControl(string controlID), Control Control.FindControl(string id), data table, DataBinder, DataBinder.Eval, datagrid, datatable, dummy data, Edit Columns..., Edit Templates, Eval, explicit cast, explicitly cast, FindControl(controlID), for each loop, get value of templatefield from datagrid, get value of templatefield from gridview, Grid View, Grid View Row, GridView, GridView Tasks, GridViewRow, GridViewRow class, header text, How to Databind a Template column, How to Databind a Template Field, How to Use Checkbox in Gridview to Select Multiple Rows, Insert Check boxes in grid view, Insert Checkboxes in datagrid, Insert Checkboxes in gridview, Item Template, Populating the GridView, postback, refresh grid, Retrieving the Status of Checkboxes, Select Multiple Rows in a Grid View, Select Multiple Rows in a Grid View Using Check Boxes, Select Multiple Rows in a GridView, Select Multiple Rows in a GridView Using CheckBoxes, template column, template field, templatefield, TemplateField properties
11 Comments »
Leave a Reply Cancel reply
About
I am Cassian Menol Razeek. I am presently working as a software engineer and at the moment I am in the pursuit of excellence for both my carrier and personal life. I live in beautiful Sri Lanka, “The Pearl of the Indian Ocean”
Browse By Date
-
Visit Counter
- 29,673 Visits Since Nov, 2008
-
Recent Posts
-

-
Recent Comments
Patrick on How to Save a Copy of a Visual… Sunilkumar on How to Save a Copy of a Visual… Nel_Pogi on C# ASP.NET – GridView : … efsdvsdvsd on C# ASP.NET – GridView : … Rajveer on C# ASP.NET – GridView : … shilpa amonkar on C# ASP.NET – GridView : … Chaitanya on C# ASP.NET – GridView : … Waqas Ashraf on C# ASP.NET – GridView : … Remya on C# ASP.NET – GridView : … saurabh bhatia on C# ASP.NET – GridView : …
Search Blog
Subscribe to Feeds…
Archives
- March 2009 (1)
- January 2009 (5)
- December 2008 (10)
- November 2008 (6)
Categories
- Animals
- ASP.NET
- AutoPostBack Property
- Backup
- Bad Habits
- Blogging
- C#.NET
- Computer Hardware
- Computer Security
- Courage
- Database
- Fibonacci Sequence
- Finance
- Financial Crisis
- Financial Strategies
- Full Backup
- Gentle
- Global
- GridView
- Happiness
- Health
- Information Technology
- Life
- Living
- Looking Back
- Mathematics
- Memory
- Menol
- Money
- Octopus
- Oracle
- PageIndexChanging Event
- Permalink
- Positive thinking
- Postponing
- RAM
- Restore
- Sea
- Sea Creatures
- Security Flaws
- Select Multiple Rows
- Setting Goals
- Software Development
- SQL Server 2005
- Surveys
- Threats
- Transaction Log Backup
- Trojan Horses
- Trust
- Uncategorized
- Visual Studio
- Web Development
Hi menol..I m a beginner for asp .net programming..your article really helped me and saved a lot of time for me..Good work..!
how to fatch record from database which record i selected from datagridview using checkbox and that record i want to redirect on next page.
To Maduri,
You want to fetch more details from the database depending on the selected record from the gridview and you want to forward that details to the next screen. If this is the scenario you want to get done…
First you can get the details you want from selected rows in the gridview by
1 Iterating through the gridview
2 Identify the checked rows
3 Extract data you want by referring to cells in selected rows
Then you have to query the database to fetch records you want by including the details you extracted from the gridview into the SQL query.
Then if you want to take those details into a next page, I recommend you to store those data in the session so you can use it from any page you want.
I hope this helped you.
If what you want is different from this, Please write your scenario so I can try to help you better.
Regards,
Menol
Hi It is really a very very good example.
I got to know many things.
Do tell me how to add text in front of those checkboxes.
how to store multiple rows in database from one click form gridview….with the help of girdview one multiple seclectin..k thnax in advance..
hai, thnks a lotttttttttt 4 ths article. u made my day!!!
i was workng on ths kind of issue for past 2 days. Finally i gt it wth the help of ur article
thanks once again
Hi, its really a good article.
This helped me alot in understanding Grid working.
Thanks
Hi,
Its realy helpful to every one.
hey its really nice but i wanted to select just one row of grid and forward the values to the next page
pls help me
thank u
very good student are confused
Thanks