Reset gridviews help...

T

trint

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
 
N

Nicholas Paldino [.NET/C# MVP]

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

trint

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]
- (e-mail address removed)




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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top