I build a DataGrid using RAZOR ( if that matters ).
I'd like to minimize the padding or wasted space around the content. This Grid will be used for display purposes mainly. Not for editing.
I already tried
// https://supportcenter.devexpress.com/ticket/details/t233080/datagrid-how-to-set-row-height function dgOnRowPrepared(e) { e.rowElement.css({ height: 15, padding: 0 }); }
And it works to set the height to 50 pixels … but not tighter to 15 pixels. Also changed the font using this:
<style> .dx-datagrid{ font:9px verdana; margin: 0px; padding: 0px; }
Any CSS / js solution to removing this wasted white space ( yes, it is green on this grid ).