Assign css class to grid

May 13, 2014 at 1: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
Coordinator
May 31, 2014 at 1: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
Coordinator
May 31, 2014 at 1:53 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.