Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet as DataSource for the GridView
Message
From
16/09/2008 03:27:33
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347730
Message ID:
01347829
Views:
8
>Hi everybody,
>
>We're assigning DataSet to GridView's DataSource. We also save this DS in a session (bad, bad design).
>
>From this Grid we can press an Edit button. This brings a FormView (different depending on PersonType with its own SQLDataSource) where we can change the information including fields in the GridView such as First/Last Name, etc. So, if the basic information was changed, I'd like to somehow "refresh" my GridView.
>
>It was so easy with VFP Grids, but with ASP.NET GridView I'm a bit lost of how should I "refresh" my GridView. Also, preferrably I need to refresh it only in case I changed few fields displayed in a GridView (if the code is going to be resource extensive).
>
>Any ideas, what should I do in my case?

Hi,

Isn't refreshing the GridView simply a matter of calling its .DataBind() method? Can you use the FormView events ( .ItemUpdated etc.) to only trigger the .DataBind() when neccessary?

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform