This question is locked. New answers and comments are not allowed.
In my customer grid, I am interested in having the customer name as the hyperlink, but then pass the ID to open the edit window. Here is my code so far using ElementAt that always opens record#1, but I was wondering I could get the current ElementAt or some other way to do this:
columns.Bound(c => c.CName).Width(165)
.Encoded(false)
.Format(Html.ActionLink("{0}", "Edit", new { id = Model.ElementAt(1).CustomerID }).ToHtmlString());
Thanks
Paul
columns.Bound(c => c.CName).Width(165)
.Encoded(false)
.Format(Html.ActionLink("{0}", "Edit", new { id = Model.ElementAt(1).CustomerID }).ToHtmlString());
Thanks
Paul