Re: Checkbox and Gridview
- From: Chris McGrath <mcgrathc@xxxxxxxxx>
- Date: Thu, 21 Jun 2007 13:13:36 -0000
Thanks. I have the grid populating the correct checkboxes now. The
issue I currently have is if a user clicks on more then one link, I
lose the values of the previously clicked link.
On Jun 20, 11:06 am, lee whitbeck <leewhitb...@xxxxxxxxxxx> wrote:
On Jun 20, 9:26 am, Chris McGrath <mcgra...@xxxxxxxxx> wrote:
Hello all,
I have a gridview that contains a checkbox for each row and in each
row, one of the fields is an asp:HyperLinkField.
What I am trying to do is allow a user to click the link and have all
records in the same group be selected by setting the checkbox's to
checked for just that group.
Can this be done? And can someone point me in the right direction?
Thanks!
One way you could do this is by populating your gridview from a
dataset. The dataset contains all proper info needed to check or
uncheck your fields. You can then handle the user click, and re-
populate your dataset based on the user's selection. Finally, all that
you would need to do is rebind your gridview to the dataset
programatically.
Lee
.
- Follow-Ups:
- Re: Checkbox and Gridview
- From: lee whitbeck
- Re: Checkbox and Gridview
- References:
- Checkbox and Gridview
- From: Chris McGrath
- Re: Checkbox and Gridview
- From: lee whitbeck
- Checkbox and Gridview
- Prev by Date: Re: CSS Menus Question
- Next by Date: Re: Response.Write and Response.Redirect
- Previous by thread: Re: Checkbox and Gridview
- Next by thread: Re: Checkbox and Gridview
- Index(es):
Relevant Pages
|
|