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

Undeprecate CellStyle / CellClass #5773

Open
lprichar opened this issue Oct 11, 2024 · 0 comments
Open

Undeprecate CellStyle / CellClass #5773

lprichar opened this issue Oct 11, 2024 · 0 comments
Labels
Type: Feature ⚙ Request or idea for a new feature.

Comments

@lprichar
Copy link

lprichar commented Oct 11, 2024

Deprecating CellStyle and CellClass at the DataGridColumn level in favor of CellStyling at the DataGrid level seems pretty inconvenient for simple cases like just disabling line wrapping for a particular column. The CellStyling lambda provides a DataGrid column which I guess theoretically could be used to find the column that I want to apply the style/class to, but how? Some columns have a Field property that I guess you could use, but it's not required, and my command columns will definitely not have it. If there were an ordinal property it would help, but we don't currently get that. Worse if I have 2 or more columns that I want to apply a CellStyle or a CellClass to now I have to write a switch statement or something which will be really ugly. I can imagine CellStyling could be very useful and powerful in certain circumstances, but please consider making it's use optional for simpler cases by undeprecating CellStyle and CellClass.

@lprichar lprichar added the Type: Feature ⚙ Request or idea for a new feature. label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant