使用(Html.BeginForm(empinfodata,empInfo,FormMethod.Post)) { if(ViewData [EmpData]! = null) { var data =(List< empinfogridview.models.empinfo>)ViewData [EmpData]; @ ViewBag.resultSetCount Empinfodata using (Html.BeginForm("empinfodata", "empInfo", FormMethod.Post)) { if (ViewData["EmpData"] != null) { var data = (List<empinfogridview.models.empinfo>)ViewData["EmpData"]; @ViewBag.resultSetCount @ empinfodata.GetHtml(tableStyle:webGrid, headerStyle:header, alternatingRowStyle:alt, selectedRowStyle:select, 列:empinfodata.Columns( empinfodata.Column(regId,format:(item)=> item.GetSelectLink(item.regID.ToString())), empinfodata.Column( 数字,数字), empinfodata.Column(名称,名称), empinfodata.Column(EffectDate,Effe ctive Date), )) @empinfodata.GetHtml(tableStyle: "webGrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select", columns: empinfodata.Columns( empinfodata.Column("regId",format: (item) => item.GetSelectLink(item.regID.ToString())), empinfodata.Column("Number","Number"), empinfodata.Column("Name","name"), empinfodata.Column("EffectDate","Effective Date"), )) } } } 我试过的: 以上代码是工作正常,第一个要求..我需要帮助第二个 } }} What I have tried: above code is working fine with 1st requirement ..i need help on second one推荐答案 检查这个 第17部分在mvc中编辑模型 - YouTube [ ^ ] 请参阅以下链接,它可能对您有所帮助。 如何显示文本框中所选行的数据| ASP.NET Web窗体| Syncfusion [ ^ ] See the following link, it may helpful for you.How to show data of selected row in textbox | ASP.NET Web Forms | Syncfusion[^] 这篇关于选择一个网格行应该在mvc中显示文本框中的行数据。我可以这样做吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-18 18:32