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

Column width should resize to fit in parent width #13

Closed
SoggyBottomBoy opened this issue May 25, 2024 · 1 comment · Fixed by #19
Closed

Column width should resize to fit in parent width #13

SoggyBottomBoy opened this issue May 25, 2024 · 1 comment · Fixed by #19
Labels
enhancement New feature or request
Milestone

Comments

@SoggyBottomBoy
Copy link

Is your feature request related to a problem? Please describe.
When using the table view inside of a grid of a specified width the table view extends beyond the width of the grid (i.e. the horizontal scroll is enabled). I expect this is due to the default width of controls within the cells (something like cell width is 300 by default)?

Describe the solution you'd like
There is a dependency property "ResizeAutoColumnsToFit" or similar, resizes columns to fit (i.e. table view is the width of the parent with no horizontal scroll bar). I guess this happens only on AutoGenerateColumns as this user can resize after this. And I'm not sure such functionality should apply when columns are explicitly defined.

Describe alternatives you've considered
A dependency property "MaxColumnWidth" which applies to all columns (unless specified otherwise).

Additional context
I just wanted to try this out to replace the WCT datagrid as it seems it is discontinued in version 8. My data grid on consists of 2 columns with column width of around 150 or so. Because of this and wanting the columns to display in full I am forced to define them myself. For grids with a low number of columns I think having columns resize and the window size changes etc is preferable, potentially with the ability of setting a MinWidth for all columns.

@SoggyBottomBoy SoggyBottomBoy added the enhancement New feature or request label May 25, 2024
@w-ahmad
Copy link
Owner

w-ahmad commented May 25, 2024

This is related to issue #10, which also discusses the support for auto size column.

@w-ahmad w-ahmad modified the milestone: v1.2.0 May 27, 2024
@w-ahmad w-ahmad linked a pull request Jun 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants