Last post Oct 23, 2013 10:25 PM by Happy Chen - MSFT
Oct 23, 2013 04:46 AM|Icemania|LINK
Is it possible to change which table of the linqdatasource for updating a record in a gridview?
The reason for this is that I have a view that has to display many fields and this is coming from many tables and this is the default for the LinqDataSource. However I only need to update two fields. I know I can set the primary field in the Linq To SQL
Class desinger, but then I'd have to remember to make these changes again if I do any updates in the furture.
So would prefer is possible to change the table purely for the update and then put it back to the view afterwards.
Oct 23, 2013 10:25 PM|Happy Chen - MSFT|LINK
From what i understand you want to change which table of the linqdatasource for updating a record in a gridview.
I would suggest you try to use Stored Procedure for LINQDataSource .
Using Stored Procedure with LINQDataSource Control in ASP.Net
i hope it helps you.