I was looking for a mechanism to iterate over a gridview using Javascript. I had to get the checkbox in each row and update that checkbox's checked status according to the corresponding header columns checkbox's status.
Just after googling a little bit , I found exactly what I was looking for. The following link has done the same thing. Have a look at this:
http://www.codeproject.com/KB/grid/GridCheckBox.aspx
** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**
Showing posts with label gridview. Show all posts
Showing posts with label gridview. Show all posts
Friday, November 11, 2011
Wednesday, August 3, 2011
ASP.NET: Adding check/uncheck all button with a gridview.
It is a common question for many developers that
1) How to add a checkbox that appears with each row of a gridview.
2) How to implement check/uncheck all functionality.
I found a useful tutorial on the internet which pretty much covers both of the above questions.
Take a look at this here:
http://wiki.asp.net/page.aspx/281/check-uncheck-checkboxes-in-gridview-using-javascript/
** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**
1) How to add a checkbox that appears with each row of a gridview.
2) How to implement check/uncheck all functionality.
I found a useful tutorial on the internet which pretty much covers both of the above questions.
Take a look at this here:
http://wiki.asp.net/page.aspx/281/check-uncheck-checkboxes-in-gridview-using-javascript/
** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**
Labels:
ASP.net,
check all,
checkbox,
gridview,
uncheck all
Thursday, May 12, 2011
ASP.NET Gridview : Get the row number from the linkbutton in a grid cell
Hi All,
Suppose you have a link button. When you click on that, you want to navigate to a different page. Before that you want to detect which row's linkbutton has been clicked. This is how it is done:
http://forums.asp.net/t/1250848.aspx/1
** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**
Suppose you have a link button. When you click on that, you want to navigate to a different page. Before that you want to detect which row's linkbutton has been clicked. This is how it is done:
http://forums.asp.net/t/1250848.aspx/1
** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**
Subscribe to:
Posts (Atom)