![]() |
|
|
|
#1 |
|
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 =?Utf-8?B?cm9kY2hhcg==?= |
|
|
|
|
#2 |
|
Posts: n/a
|
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. -- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com "rodchar" wrote: > 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 =?Utf-8?B?Q3VydF9DIFtNVlBd?= |
|
|
|
#3 |
|
Posts: n/a
|
ok, so once i add my boolean column to the datasource how would do i tie it
to a checkbox in the datagrid? "Curt_C [MVP]" wrote: > 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. > > -- > Curt Christianson > site: http://www.darkfalz.com > blog: http://blog.darkfalz.com > > > > "rodchar" wrote: > > > 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 =?Utf-8?B?cm9kY2hhcg==?= |
|