ASP.NET MVC WebGrid Column Width - Gists · GitHub

Skip to content Search Gists Search Gists All gists Back to GitHub Sign in Sign up Sign in Sign up Dismiss alert {{ message }}

Instantly share code, notes, and snippets.

@habeebmatrix habeebmatrix/ASP.NET MVC WebGrid Column Width.cs Last active March 8, 2016 19:59 Show Gist options
  • Star (0) You must be signed in to star a gist
  • Fork (0) You must be signed in to fork a gist
  • Embed Select an option
    • Embed Embed this gist in your website.
    • Share Copy sharable link for this gist.
    • Clone via HTTPS Clone using the web URL.

    No results found

    Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/habeebmatrix/a60ae30e1fe807fe0189.js"></script>
  • Save habeebmatrix/a60ae30e1fe807fe0189 to your computer and use it in GitHub Desktop.
Code Revisions 3 Embed Select an option
  • Embed Embed this gist in your website.
  • Share Copy sharable link for this gist.
  • Clone via HTTPS Clone using the web URL.

No results found

Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/habeebmatrix/a60ae30e1fe807fe0189.js"></script> Save habeebmatrix/a60ae30e1fe807fe0189 to your computer and use it in GitHub Desktop. Download ZIP ASP.NET MVC WebGrid Column Width Raw ASP.NET MVC WebGrid Column Width.cs This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters
@{
var grid = new WebGrid(Model, null, null, 50);
}
@grid.GetHtml(columns: grid.Columns(
grid.Column("Date", "Date", canSort: true, style: "date"),
grid.Column("SalesPerson", "SalesPerson", canSort: true, style: "salesperson personname"),
grid.Column("SaleAmount", "SaleAmount", canSort: true, style: "saleamount")
));
Raw ASP.NET MVC WebGrid Column Width.css This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters
/* CSS Styles*/
.date {
width: 100px;
}
.saleamount {
width: 150px;
}
.salesperson {
color: Blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment You can’t perform that action at this time.

Từ khóa » Html.grid Mvc Column Width