Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet as DataSource for the GridView
Message
From
16/09/2008 11:10:26
 
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:
01347934
Views:
7
>>>>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
>>>
>>>I don't think it's that simple. DataSet for the GridView has no idea that changes were made in the database. See this discussion
>>>http://forums.asp.net/p/1320369/2624488.aspx#2624488
>>
>>I see that the poster there, like you, says that the Dataset used as the datasource for the gridview is stored as a session variable. If that is the case can't you just use the same session reference as the datasource for the FormView ?
>
>I can not. The GridView dataset uses only small subset of fields. FormView uses SQLDataSource with StoredProcedure in UpdateCommand.
>
>Anyway, I found this link http://msdn.microsoft.com/en-us/library/tat996zc.aspx and I'm trying it right now.
>
>The poster there is me, BTW :)
DOH That explains the similarities in the problem :-}
So are you planning on having the FormView locate the relevant row in the session reference and just updating the relevant fields there?
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform