Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make DataGrid more compact #564

Open
ekdahl opened this issue May 15, 2023 · 1 comment
Open

How to make DataGrid more compact #564

ekdahl opened this issue May 15, 2023 · 1 comment

Comments

@ekdahl
Copy link

ekdahl commented May 15, 2023

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
Copy link
Author

ekdahl commented May 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant