Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

In my requirement I need to select multiple rows from the gridview and I need to fetch these rows in javascript file and need to fetch these values to another page.

Please explain with an example


Thanks in advance
Posted

1 solution

The easiest way is to implement a CheckBox inside the GridView. So, user can actually check the Rows of their choice. Then you can loop through the rows and check if the CheckBox is checked or not. If it is checked, then read that row values or do whatever you want to do.

Refer some examples for instance.
1. Check Uncheck all CheckBoxes in ASP.Net GridView using jQuery[^]
2. Using jQuery with CheckBox and ASP.NET GridView[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900