grid.Column("AssignmentName", "Assignment", format: @
But i get this error. how do i rectify it?
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Column(string, string, System.Func
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 12, 2013, 2:57 AM EDT
grid.Column("AssignmentName", format: @AssignmentID">@item.AssignmentName)
regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 11, 2013, 11:23 PM EDT
Try like this
grid.Column("AssignmentName", "Assignment", format: (item) => Html.ActionLink("Assignment", "Details", new { id = item.AssignmentID })),
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 12, 2013, 1:49 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 12, 2013, 2:16 AM EDT
grid.Column("AssignmentName", "Assignment", format: (item) => Html.ActionLink(item.AssignmentName, "Details", new { id = item.AssignmentID })),
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 12, 2013, 2:38 AM EDT
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Column(string, string, System.Func
vidhyaRank #4,868 · 321 reputationPosted Jul 12, 2013, 3:27 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 12, 2013, 3:36 AM EDT
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 14, 2013, 8:44 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 8:47 PM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 8:51 PM EDT
Regards,
Iftikar