Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Any DataGrid Gurus out there???

Reply
Thread Tools

Any DataGrid Gurus out there???

 
 
walterd
Guest
Posts: n/a
 
      06-03-2004
Hi

I have a DataGrid that have CheckBoxes. The DataGrid allow Paging and
Sorting.
If I click on a CheckBox say in Page 1 and click Next to view Page 2, when I
click Prev the CheckBox is UnChecked.

Is there anyone out there who know how I can overcome this problem?

All help is highly appreciated.


 
Reply With Quote
 
 
 
 
Saravana [MVP]
Guest
Posts: n/a
 
      06-04-2004
Easiest solution for this is, you can add an extra boolean column in your
datasource. Then bind that column to the checkbox. When you move from one
page to other, just store the updated value back into datasource.

Drawback of this approach.

1. You need persist the whole datasource( using session or any other ways)
2. Extra code when moving from one page to other.

If you need more details then get back to me

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



"walterd" <> wrote in message
news:...
> Hi
>
> I have a DataGrid that have CheckBoxes. The DataGrid allow Paging and
> Sorting.
> If I click on a CheckBox say in Page 1 and click Next to view Page 2, when

I
> click Prev the CheckBox is UnChecked.
>
> Is there anyone out there who know how I can overcome this problem?
>
> All help is highly appreciated.
>
>



 
Reply With Quote
 
 
 
 
walterd
Guest
Posts: n/a
 
      06-09-2004
Hi Saravana

I have tried to use your idea and my dataset is stored in Session.

However I cann't seem to get the thing working.

Is it possible for you to send me a code snippet.

Thank you

Walter

"Saravana [MVP]" <> wrote in message
news:...
> Easiest solution for this is, you can add an extra boolean column in your
> datasource. Then bind that column to the checkbox. When you move from one
> page to other, just store the updated value back into datasource.
>
> Drawback of this approach.
>
> 1. You need persist the whole datasource( using session or any other ways)
> 2. Extra code when moving from one page to other.
>
> If you need more details then get back to me
>
> --
> Saravana
> Microsoft MVP - ASP.NET
> www.extremeexperts.com
>
>
>
> "walterd" <> wrote in message
> news:...
> > Hi
> >
> > I have a DataGrid that have CheckBoxes. The DataGrid allow Paging and
> > Sorting.
> > If I click on a CheckBox say in Page 1 and click Next to view Page 2,

when
> I
> > click Prev the CheckBox is UnChecked.
> >
> > Is there anyone out there who know how I can overcome this problem?
> >
> > All help is highly appreciated.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any headset gurus out there? Daniel NZ Computing 6 06-11-2005 08:44 AM
Any FreeRadius gurus out there? Pavlov Cisco 1 12-02-2004 11:21 PM
Any DataGrid Gurus out there? wdewebserver ASP .Net Datagrid Control 1 08-13-2004 02:33 PM
Any Outlook gurus out there? Anonymous Computer Support 3 02-16-2004 03:04 PM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments