Reputation: 4340
I have a simple FormView in a ASP.Net application. However when there are no records in the datasource, the control completely hides itself. I need to be able to have the end user add the first record view the FormView. Is there any way around this behavior?
Upvotes: 0
Views: 1218
Reputation: 2763
You can use EmptyDataTemplate to show the formView when no data is available.
http://msdn2.microsoft.com/us-en/system.web.ui.webcontrols.formview.emptydatatemplate(VS.80).aspx
Upvotes: 2