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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Abhay ShankerPosted Jun 18, 2016, 2:19 AM
Dinesh Kumar SharmaPosted Aug 26, 2017, 4:45 AM