Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam use web grid in mvc

row name status
1 ali false
2 saeed true
3 jim treu

iam want show result
row name status
1 ali inactive
2 saeed active
3 jim active


HTML
grid.Column(
                "FNewsstatus",
                          (grid.SortColumn == "FNewsstatus" ? (grid.SortDirection == SortDirection.Ascending ? " status▼" : "status▲") : "status"),
           format:
           @<text>
               <span class="display-mode"><label id="lblBirthDate">@{ if (@item.status)}  </label></span>

           </text>,
                     style: "IDWith", canSort: false),
Posted

You should use Google more...
A simple search can bring you hundreds of thousands of answers...
For now, you may start here:
http://msdn.microsoft.com/en-us/magazine/hh288075.aspx[^]
 
Share this answer
 
See this article it explain web gride with a simple example may be it help you.

WebGrid in ASP.NET MVC4[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900