Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about doing multi-selects in a grid
Message
From
13/04/2002 19:29:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Question about doing multi-selects in a grid
Miscellaneous
Thread ID:
00644767
Message ID:
00644767
Views:
41
Hi, all...

I'm trying to do something in ASP.NET...here it is:

I have a reason code table with as few as 10 reason codes, or as many as a few hundred. Users need to be able to pick multiple reason codes as part of a filter selection for a report.

What I'd like to do is this...

SELECT Descript, 0 AS SELECTED FROM RsnCode...and put that into a recordset.

Then I want to drop an instance of a datagrid on a page, and bind the grid to the recordset, and set one of the columns as a checkbox...so that if the user checks 5 of the records in the grid, I can query the recordset after the fact to see which ones the user picked.

I know how to code the grid, but I'm not sure how to automatically bind the checkbox column in the grid to my recordset.

Has anyone tried to do this, or is there a better way?

(I realize I could try a multi-select list box, but a grid of checkboxes seems to be better from a UI perspective).

Thanks in advance,
Kevin
Reply
Map
View

Click here to load this message in the networking platform