load page with detailsview in insert mode

喜欢而已 提交于 2019-12-13 16:23:26

问题


I have an ASP.Net page with a gridview and detailsview...when I click an item in the gridview, the detailsview is displayed and populated with the details of the selected user from the gridview....currently, when I first load the page and no user is selected from the gridview, I don't see the detailsview...how can I display the detailsview in insert mode when the page is loaded...before a user has been selected from the gridview?


回答1:


DetailsView1.DefaultMode = DetailsViewMode.Insert;


来源:https://stackoverflow.com/questions/1776407/load-page-with-detailsview-in-insert-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!