473,513 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Go Back To Updated GridView

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
Jul 16 '07 #1
7 2676
On Jul 16, 3:04 pm, Joe Kovac <Joe...@nospam.comwrote:
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
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

Jul 16 '07 #2
Masudur wrote:
On Jul 16, 3:04 pm, Joe Kovac <Joe...@nospam.comwrote:
>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

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
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
Jul 16 '07 #3
Joe Kovac wrote:
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
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
Jul 16 '07 #4
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam.comwrote:
Joe Kovac wrote:
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

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
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

Jul 16 '07 #5
Masudur wrote:
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam.comwrote:
>Joe Kovac wrote:
>>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
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

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
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
Jul 16 '07 #6
On Jul 16, 3:39 pm, Joe Kovac <Joe...@nospam.comwrote:
Masudur wrote:
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam.comwrote:
Joe Kovac wrote:
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
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
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

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
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

Jul 16 '07 #7
Masudur wrote:
On Jul 16, 3:39 pm, Joe Kovac <Joe...@nospam.comwrote:
>Masudur wrote:
>>On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam.comwrote:
Joe Kovac wrote:
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
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
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
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

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
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
Jul 16 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3657
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
1
308
by: Mike Grace | last post by:
Hi, I have a gridview which is using a SqlDataSource to update a table. The SqlDatasource is using a stored procedure to update the table. If I edit a row, change a value and click update...
3
6464
by: Kevin | last post by:
We have a base class that is responsible for creating the navigation and look and feel of our applications. So all our web pages inherit from this base page so they don't have to worry about the...
8
1920
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the...
1
2034
by: Joe Kovac | last post by:
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...
1
9535
by: Steve Kershaw | last post by:
Hi, I'm using the RowUpdating() event of an updatable GridView. I need to see the values of the columns in the updated row. There has got to be a way to do this! Any suggestions? Thanks...
0
904
by: eshwaramoorthy | last post by:
Hi, i hav a dropdownlist within gridview.and if i select that particular value in dropdownlist the value should get updated. pls send me coding. thanks
1
1988
by: Landry, Eric | last post by:
I am posting this for a coworker. -------------------------------------------------------- The issue i'm having is after i enter all my data into my gridview's textboxes and dropdownlists the...
1
1920
by: Joe Blauth | last post by:
Hi all, I was running into a problem with a gridview under ASP.net. What I am trying to do is binding the DataSource dynamically in a way that enables me to edit the rows in the Gridview. This...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.