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

Home Posts Topics Members FAQ

Reset gridviews help...

I have 7 gridviews on one aspx page that kindof work like a javascript
menu. How can I reset them after their use and put back into original
state upon creation (so that they could easily be used again)? If
possible, can you show me a code snippet that sets the gridview and
the datasource in their original condition before binding?
Any help is appreciated.
Thanks,
Trint

Jun 25 '07 #1
2 1507
Trint,

Well, you are binding the grids to something. You just have to store
what you originally bound to (it can't be a data reader, since they are
forward only, read only) and then rebind to the grids when you want to
reset. You will also have to remember the layout (if you can't determine it
from the underlying data) and set that as well.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"trint" <tr***********@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
>I have 7 gridviews on one aspx page that kindof work like a javascript
menu. How can I reset them after their use and put back into original
state upon creation (so that they could easily be used again)? If
possible, can you show me a code snippet that sets the gridview and
the datasource in their original condition before binding?
Any help is appreciated.
Thanks,
Trint
Jun 26 '07 #2
On Jun 25, 11:21 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Trint,

Well, you are binding the grids to something. You just have to store
what you originally bound to (it can't be a data reader, since they are
forward only, read only) and then rebind to the grids when you want to
reset. You will also have to remember the layout (if you can't determine it
from the underlying data) and set that as well.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"trint" <trinity.sm...@gmail.comwrote in message

news:11**********************@m36g2000hse.googlegr oups.com...
I have 7 gridviews on one aspx page that kindof work like a javascript
menu. How can I reset them after their use and put back into original
state upon creation (so that they could easily be used again)? If
possible, can you show me a code snippet that sets the gridview and
the datasource in their original condition before binding?
Any help is appreciated.
Thanks,
Trint- Hide quoted text -

- Show quoted text -
ok, thanks!

Jun 26 '07 #3

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

Similar topics

9
29988
by: Ken | last post by:
How can I reset the initial form variables that are set with session statements when clicking on a button? I tried this but the function was not called: <?PHP function reset_form($none) {...
7
14602
by: Kermit Piper | last post by:
Hello, How can you clear session variables when a reset button is pressed? I thought I might be able to do something like: <% If request.form("Reset") = "Reset" then Session("variable") =...
3
9795
by: WT | last post by:
Hello, I am trying to reset the content of mainy gridviews when some line is selected. All these gridviews have viewstate enabled Using C# and asp.net, I try changing the datasource to null in...
0
2781
by: manuel.ricca | last post by:
Hello, I'm trying to create a table with 2 nested gridviews and then a DetailsView on the right. The DetailsView should show the details of the item selected in the 2nd (nested) GridView: My...
1
1149
by: Carlos | last post by:
Hi all, I need to place 5 gridviews next to each other. However, during esign time, the gridviews are placed under the previous.I played with the position style of the document but it did not...
0
1130
by: trint | last post by:
I have a 5 gridviews on one aspx page in c# that work like a java menu as selections are made by category. (The first one is on the left, as selections are made the following 4 appear across the...
3
2429
by: AishaKhalfan | last post by:
Hi, :wave: I have many search criteria in my program, such as: search by name, search by age, search by gender, search by city the user can search by name only, or by name and age, or by...
2
1577
by: ShaijuThomas | last post by:
Hi guys, terribly in need of help. There are multiple gridviews on my web page. I would like the data to be downloaded in a single excel book but with multiple tabs. I don't want client-side scripts....
8
7449
by: stoogots2 | last post by:
I would like to reuse the code for gridview sorting for each of the several GridViews that I have on one page. I've not done this before, so I am seeking a more elegant and reusable solution than...
0
7265
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
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
5095
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
4751
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
3240
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
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.