Reset gridviews help...

  • Thread starter Thread starter trint
  • Start date Start date
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
 
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.
 
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!
 
Back
Top