How to further narrow DataGrid rows padding and also in between column #2760
shakeeluetian
started this conversation in
General
Replies: 1 comment 1 reply
-
It's not hard. First add the custom class name on DataGrid, to make sure you don't target the wrong tables: <DataGrid Class="my-data-grid"
@ref="dataGrid"
TItem="Employee" and then have some CSS .my-data-grid tbody tr td {
padding: .25rem;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a) I have used
<DataGrid Narrow="true">
but i want to further reduce padding. How can i do that?b? How can i decrease the padding in between
DataGrid
columns?c) Can we apply CSS on
<DataGridColumns>
?Beta Was this translation helpful? Give feedback.
All reactions