Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Go Back To Updated GridView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Kovac - 16 Jul 2007 10:04 GMT
Hi!

I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?

Regards,

Joe
Masudur - 16 Jul 2007 10:08 GMT
> Hi!
>
[quoted text clipped - 9 lines]
>
> Joe

hi....

before moving to detail view save your gridview's page index... in
session or viewstate
when update finished in detailview... rebind the gridview and set your
saved page index... to the grid view...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Joe Kovac - 16 Jul 2007 10:28 GMT
>> Hi!
>>
[quoted text clipped - 22 lines]
> www.kaz.com.bd
> http://munnacs.110mb.com

Thanks for the hint.
I guess the Session state might do it. The ViewState would be lost after
redirecting to the DetailsView.
But maybe there is a more automatically way?
Regards,
Joe
Joe Kovac - 16 Jul 2007 10:32 GMT
> Hi!
>
[quoted text clipped - 9 lines]
>
> Joe

I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.

Is there a standard way to remember this when coming back to the source
page?

Joe
Masudur - 16 Jul 2007 10:36 GMT
> > Hi!
>
[quoted text clipped - 18 lines]
>
> Joe

Sorry could not get the actual picture... if your grid view row have
dropdown list and textbox or... the page where grid view resides have
the controls...?

Thanks
Joe Kovac - 16 Jul 2007 10:39 GMT
>>> Hi!
>>> I have one page with a GridView. Their I can select one item and edit
[quoted text clipped - 20 lines]
>
> Thanks

The page with the grid view has additional controls which function as
filters and influence the grid view. Maybe I can use something like
cross page posting. But I never worked with this feature.

Thanks

Joe
Masudur - 16 Jul 2007 10:49 GMT
> >>> Hi!
> >>> I have one page with a GridView. Their I can select one item and edit
[quoted text clipped - 28 lines]
>
> Joe

Hi joe...

in one of our project we did a similer thing...
but in our case we did used a searchtemplate... searchtemplate
basically a object structure where all the necessary objects are
saved..
from ui we constract the searchtemplate onject depending on user input
and then we pass the templatein businesslayer... businesslayer takeout
the necessary stuff and perfrom search operation and return the
resutl...
after the result got page... the searchtemplate is saved in session
for future use... if we navigate way from the page and come back to
the page in same session any time.. we check in pageload that if
existing searchtemplate is already in session or not... if exists
rebind the grid with search result... untill the user change the ui
search criteria and submit we dont change the search criteria...

one more thing... if you dont have to go to another page.. may be you
can use multiview of asp.net 2.0 in that case page will automatically
every thing in viewstate...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Joe Kovac - 16 Jul 2007 11:01 GMT
>>>>> Hi!
>>>>> I have one page with a GridView. Their I can select one item and edit
[quoted text clipped - 50 lines]
> www.kaz.com.bd
> http://munnacs.110mb.com

Hi Masudur,

I think you found a good solution for your tasks. As I do have many
pages with a similar construction, I do not want to change to much
(meaning multi view is not really wanted).
Saving the separate states of each control might work. Even nicer would
be if I could get the states from the previous page somehow without
saving them.

Regards, and thanks

Joe

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.