在插入模式DetailsView控件加载页面 [英] load page with detailsview in insert mode
本文介绍了在插入模式DetailsView控件加载页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个GridView和DetailsView一个ASP.Net页面...当我在GridView中单击一个项目,会显示在DetailsView,并与选定的用户从gridview的细节填充....目前,当我第一次加载页面并没有用户从GridView的选择,我没有看到在DetailsView ...我怎样才能显示在插入模式在DetailsView当页面加载中...用户已经从gridview的选择之前, ?
解决方案
DetailsView1.DefaultMode = DetailsViewMode.Insert;
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?
解决方案
DetailsView1.DefaultMode = DetailsViewMode.Insert;
这篇关于在插入模式DetailsView控件加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文