ModernWpf icon indicating copy to clipboard operation
ModernWpf copied to clipboard

How to make DataGrid more compact

Open ekdahl opened this issue 1 year ago • 1 comments

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. image

ekdahl avatar May 15 '23 13:05 ekdahl

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.

ekdahl avatar May 16 '23 10:05 ekdahl