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

Autostretch last column of GridViews to fill empty space #718

Closed
harry-cpp opened this issue Feb 20, 2017 · 5 comments · Fixed by #1881
Closed

Autostretch last column of GridViews to fill empty space #718

harry-cpp opened this issue Feb 20, 2017 · 5 comments · Fixed by #1881
Milestone

Comments

@harry-cpp
Copy link
Contributor

It would be nice if the last column of GridView and TreeGridView got stretched to fill the remaining space like on the other platforms, right now it looks rather silly:

treegridview

@cwensley cwensley added this to the 2.x milestone Feb 21, 2017
@cwensley
Copy link
Member

Thanks for submitting the issue! It would be good if it were not just the last column, but the ability to specify which column(s) should fill the remaining space.

@harry-cpp
Copy link
Contributor Author

It would be good if it were not just the last column, but the ability to specify which column(s) should fill the remaining space.

Only the last column can fill the remaining space, anything but that would create a lot, and I say A LOT of problems regarding how bottom scrollbar functions and how the other grid columns react to resizing some columns.

@cwensley
Copy link
Member

Hm, that's unfortunate, since I can envision scenarios where you'd want a few columns to the right of the expanding column. macOS supports this scenario which is used in Finder, for example:
macos expanding column

@harry-cpp
Copy link
Contributor Author

harry-cpp commented Feb 21, 2017

It's not impossible to do, but I do think it's gonna be hard, reason being is that you have an AutoSize property which expands the cell enough so everything in it is visible, but if you set that cell property to also fill empty space, in WPF those are 2 different sizing markers so you come to a problem with the face that you can follow only one of those, but you need both for something like TreeGridView.

@nast90210
Copy link

But what about ability to set the column widths? And maybe by reflection lastColumn.width = grid.width - otherColums.width?

@cwensley cwensley changed the title [WPF] Autostretch last column of GridViews to fill empty space Autostretch last column of GridViews to fill empty space Oct 16, 2020
@cwensley cwensley modified the milestones: 2.x, 2.5.11 Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants