Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grid.Mvc table css class

Maybe I am blind, but I am not able to find how to change css class attributte for entire table generated by Grid.MVC.

Default css class settings:

<table class="table table-striped grid-table">

And I want to edit that. I have a workaround now in javasript. It works but there has to be some better solution at server side.

like image 828
Martin Volek Avatar asked Apr 10 '26 15:04

Martin Volek


1 Answers

I finnaly found that there is a shared view in ~/Views/Shared (_Grid.cshtml). There you can edit the whole grid.

like image 188
Martin Volek Avatar answered Apr 13 '26 05:04

Martin Volek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!