hi frnds
i want to create table or web grid using column name .
column name should be link button
my column name is User_Id ,Country ,Destination so
so these column i wantas a link button in mvc
hi frnds
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
Sandip G PatilRank #1,083 · 1.8K reputationPosted Feb 20, 2017, 4:33 AM EST
sudheenRank #5,764 · 287 reputationPosted Feb 20, 2017, 12:09 AM EST
@Html.ActionLink("Send Message", "SendCustomerMessage", "SendMessage", new {id = currentItem.CustomerId}, new { @class = "btn"})Anjali KhanRank #1,649 · 931 reputationPosted Feb 21, 2017, 12:45 AM EST
hi sandeep
i created grid column as link button but i m getting error please check
@using GridMvc.Html
@{
ViewBag.Title = "Grid";
WebGrid grid = new WebGrid(source: Model, canSort: false);
}
Grid
@grid.GetHtml(
columns: grid.Columns(
grid.Column("Action" , format:@ ),
grid.Column("Action" , format:@ ) ,
grid.Column("Action" , format:@ )
)
);
})
)
)