how do i do this...

G

Guest

hey all,

i have a datagrid with checkbox rows and was wondering how to persist the
selected checkboxes as a user pages the datagrid. So here's my thought
process (please correct me if i'm wrong or if there's a better way).

i was thinking when i populate a datatable from my database, i'll add an
extra boolean column manually in the code behind. Then i'll add a checkbox
item to a template column and somehow tie those together. But I don't know
how to do that? Or if binding the checkbox to that extra boolean column is
even possible.

if this is a good idea then can someone please show me how to bind the
checkbox to the extra boolean column? Or if there's a better way, what is it?

thanks,
rodchar
 
G

Guest

You'll have to add the values to the DS/DV prior to binding or else you will
be stuck with a very manual process, repeatedly.
 
G

Guest

ok, so once i add my boolean column to the datasource how would do i tie it
to a checkbox in the datagrid?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top