Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 07, 2012 12:10 AM by Decker Dong - MSFT
Dec 03, 2012 08:19 AM|LINK
so i wish to add "a blank row" to the datasource or gridview
if i work on sqldatasource (select event - e.affectrows > 0) to check, and then rebind a new datatable
it says on "changes cannot be made in the stage (sqldatabase, datatable, datamember....
it seems sqldatasource is locked in all the sqldatasourceevents.
if i work on gridview to add a blank row, the gridview still have no footer because of empty template
How should i do? thanks a lot.
Dec 04, 2012 01:47 AM|LINK
If really, I think you can just use something like WebService or WCF to write down your logic data contents codes, and then call them to interchange with db's tables, and your Html page's jQuery or js should use something like Async to call them, and when
successfully, do what you want or when in failure, do what you wanna do……
Dec 06, 2012 09:15 AM|LINK
Thanks a lot for sugguestions.
Not sure my way is good
finally i use sqldatasource init event to query sql server for null result first before binding datasource to the gridview
but there would be 2 queries to database server, not 1.
Dec 07, 2012 12:10 AM|LINK
I come here to check whether the problem is solved or not.
As far as I see, it's hard to cope with that at pure client side because you should interface with the db on the server.