不使用Telerik(其他第三方控件)的asp.net-mvc webgrid在线编辑

问题描述:

我的要求是不使用ThirdParty控件(Telerik等)进行MVC + WebGrid内联编辑.如果我们单击GridView标签中的编辑动作链接",则转换为文本框和DropdownList,我们可以更改数据,然后单击更新动作链接",将数据存储在数据库和GridView中.有人对需求有想法吗?.

提前致谢.

My Requirement is MVC+WebGrid Inline Editing without Using ThirdParty Control(Telerik etc.,).If We Click Edit Actionlink In GridView Label Convert To TextBox and DropdownList We Can Change The Datas And After That Click Update Actionlink The Datas Are Stored In DataBase And GridView.Anyone Have Idea About The Requirement?.

Thanks In Advance..

只需在代码中添加此行即可.
Just add this line in your code..

.Editable(edit=>edit.Mode(GridEditMode.InLine))



一切顺利.



all the best..