This project is read-only.

Assign css class to grid

May 13, 2014 at 2:31 AM
Please help ... how do i assign css class to this grid as below

@Html.Grid(Model).AutoGenerateColumns().WithPaging(4).Sortable(true) I want to set class as <table class="table-bordered"

There is no option as .Attributes(..) . I am using GridMVC version 3.0.0 with bootstrap
May 31, 2014 at 2:53 PM
Unfortunatly there is no api for that.
I copied your suggestion to work item.

Now you can simply modify _Grid.cshtml template to solve the problem
May 31, 2014 at 2:53 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.