开发者

how to apply css class to mvccontrib grid

开发者 https://www.devze.com 2022-12-16 01:41 出处:网络
I am using mvccontrib grid in asp.net mvc(C#) application. How can i apply css class to the grid thats created for the mvccontrib grid Attributes?

I am using mvccontrib grid in asp.net mvc(C#) application.

How can i apply css class to the grid thats created for the mvccontrib grid Attributes?

I am loo开发者_如何学Pythonking to construct like:

<table border="0" cellspacing="0" class="usertable">....</table>

By default, the mvccontrib grid has the class "grid". I need to change it to my custom css class


Html.Grid(x).Columns(col => {}).Attributes(@class => "usertable");

By the way MvcContrib's Grid should have full intellisense so you should see all the available methods when you type "." (dot).

0

精彩评论

暂无评论...
验证码 换一张
取 消