Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet as DataSource for the GridView
Message
 
 
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:
01347932
Views:
8
>>>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 :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform