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
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