ModernWpf
ModernWpf copied to clipboard
How to make DataGrid more compact
I can't figure out how to make the cells in datagrids more compact.
See example image below. I want the padding/margin or whatever property it is taking up the unused space to be smaller. How can I do that?
I've tried setting padding, margin and more to 0 for DataGridCell but never see any difference.
Found a simple solution for reducing dead space at top and bottom (globally):
Application.Current.Resources["DataGridRowMinHeight"] = 24.0;
Still looking for a simple solution for reducing padding at left and right.