this is my mvc view :
@using GridMvc.Html
@model IEnumerable
@{
ViewBag.Title = "AllRegisterUserDetails";
}

@Html.ActionLink("Create User Account", "Register", "Account", new { @class = "btn btn-info btn-pressure" })
@Html.Grid(Model).Columns(columns =>
{
columns.Add(c => c.Id).Titled("Id").Encoded(false)
.Sanitized(false).SetWidth(50);
columns.Add(c => c.UserName).Titled("UserName").Filterable(true).Encoded(false)
.Sanitized(false).SetWidth(50);
columns.Add(c => c.EmailID).Titled("EmailID").Filterable(true).Encoded(false)
.Sanitized(false).SetWidth(50);
}
)
my controller :
[HttpGet]
[AllowAnonymous]
public ActionResult AllRegisterUserDetails()
{
var Users = objIAccountData.GetAllUsers();
return View(Users);
}
------------------------------- while compiling showing the error :
Specified view name for Grid.Mvc not found. ViewName: _Grid
------------------------------------
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Abhay ShankerRank #375 · 6.7K reputationPosted Jun 17, 2016, 10:19 PM EDT
Dinesh Kumar SharmaRank #1,514 · 1.1K reputationPosted Aug 26, 2017, 12:45 AM EDT