protected void Page_Load(object sender, EventArgs e) { Tuan.BLL.MerchantInfo merBLL = new Tuan.BLL.MerchantInfo(); DataTable table = merBLL.GetList("ID=" + 3).Tables[0]; DetailsView1.DataSource = table; DetailsView1.DataBind(); } protected void DetailsView1_ModeChanging(object sender, DetailsViewModeEventArgs e) { DetailsView1.DefaultMode = DetailsViewMode.Edit; } <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" onmodechanging="DetailsView1_ModeChanging"> <Fields> <asp:CommandField ShowEditButton="True" /> </Fields> </asp:DetailsView>
为什么我的detailView点击编辑的时候进入不了编辑的状态?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
像WinForm里的DataGridView是有 是否可编辑 这样的属性的