-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGrid] How to have a column have different data types. In effect, flipping (transposing) the functionality of rows and columns #11590
Comments
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. This codesandbox.io template may be a good starting point. You can find more codesandbox templates in our docs. Thank you! 🙇🏼 |
Thats the problem, I can't find a way to implement what I want using the DataGrid and I am asking if it feasible since you are the product experts. I found a related issue after more research, is this still not possible: #3285 |
Well ... I am not sure if thats possible. Will have a look later, but in the meantime: Did you try reversing the structure? From this:
To this:
Where Change can be an aggregation row Would that help? |
Thank you for your response. While your solution can be implemented, it won't fit my requirements unfortunately, our users are used to a specific format and I need to replicate it to communicate important financial information to them. Deviation from that format will require re-educating a lot of internal and external users and would lead to operational issues where any potential misunderstandings will have huge fallout effects (someone making a wrong decision with a large financial impact based on information that they didn't understand correctly due to format). Sounds like I might have to try and squeeze more out of the table component, and feature-full datagrid component would have yielded a nicer end product. Thank you for taking a look! |
Ok, I will check if this is possible in a way. |
Hey @7ruth One thing to note here is that Data Grid does not support columns with different data types. |
The issue has been inactive for 7 days and has been automatically closed. If you think that it has been incorrectly closed, please reopen it and provide missing information (if any) or continue the last discussion. |
I wanted to check in and see if there has been any progress regarding this issue. The functionality to handle multiple data types within a single column in the DataGrid would be extremely beneficial. Not only for displaying but also for editing. |
The problem in depth
I would like to be able to have different data types in a single column, because my first column will list rows with each having a different data type and definitions and each new column will be a new version across time. Something like a financial income statement over different annual period. Here is an example of a table I have in mind, is this possible?
Thank you for your help!
Your environment
`npx @mui/envinfo`
Search keywords: Datagrid, how to have rows serve as columns
Order ID: 12849
The text was updated successfully, but these errors were encountered: