$("#emp-data-grid").jqGrid({ datatype: "local", data: mdata, colNames: ["EmployeeID", "EmpName", "Designation", "Salary", "MobileNo", "Email", ""], colModel: [ { name: "EmployeeID", index: "EmployeeID", sortable: false, editable: true, edittype: 'checkbox', editoptions: { value: 'true:false' } }, { name: "EmpName", index: "EmpName" }, { name: "Designation", index: "Designation" }, { name: "Salary", index: "Salary", sorttype: "int" }, { name: "MobileNo", index: "MobileNo", sorttype: "int" }, { name: "Email", index: "Email" },
var x = '@Html.ActionLink("EDIT", "Edit", "Home", new { EmployeeID = "id" }, new { @style = "color:Blue;font-weight:bold;" })'; return x.replace("id", rowObject[1]); }, align: 'left', width: 100,editurl: ' / Home / Edit / ' } ], shrinkToFit: true, viewrecords: true, sortorder: 'asc' caption: "Employee List" }); This is my Controller Code:- public ActionResult Edit(int? id) { return view(); } In the above controller i want to access id and send to view for displaying that id in some textbox,using viewdata. Please guide me where iam doing mistake,... Thanks Ramu