Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - how do i do this...

 
Thread Tools Search this Thread
Old 08-31-2005, 02:47 PM   #1
Default how do i do this...


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==?=
  Reply With Quote
Old 08-31-2005, 02:56 PM   #2
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
 
Posts: n/a
Default RE: how do i do this...
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?=
  Reply With Quote
Old 08-31-2005, 04:38 PM   #3
=?Utf-8?B?cm9kY2hhcg==?=
 
Posts: n/a
Default RE: how do i do this...
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==?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46