Slopey
Posts: 33
|
| Posted: 10/31/2006, 2:49 AM |
|
Hi All,
I've got a grid with a list of records shown, and I'd like to be able to use a checkbox to select which records out of the grid I can then run a specific action on in an OnClick event on a button.
Is it possible to do this if the grid has alt rows? In HTML/asp I would give all the checkboxes the same name, set their value to the id of the record and when I clicked, it would pass the values of the check boxes as a delimited list to the linked page.
Can I do the same from the designer? If I add a check box to the first row then alt row of the grid at design time I'm not able to give them the same name. Also, I can set the control source of the checkbox but not the value - I'd like to set the checked value to the unique key field of the record, but it's not availiable in the designer.
I want to produce functionality which for example shows you a list of emails, you tick the ones you want, then press a delete button and it passes thoses record's id's to another page/code.
I suppose I can interrogate the values of the checkboxes from the OnClick event of the button, but will that give me a list of values for multiple selections, and how do I assign the unique key to the checkbox ticked value?
Cheers,
Slopey
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 10/31/2006, 3:03 AM |
|
Part answer:
In CCS3.1 use the Alternate Row through CSS option.
This would effectivly releave you off the ALT_ problem and get you back to single-point-if-reference.
If CCS 3.1 is no option or you are using older version, see: http://forums.codecharge.com/posts.php?post_id=68718
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
Slopey
Posts: 33
|
| Posted: 10/31/2006, 4:13 AM |
|
Ok - I'm using 3.1 so I can try it that way.
Any advice on how to return the values of the selected Checkboxes?
|
 |
 |
|