简体   繁体   中英

customize wpf grid cell

I have 2 tables with a relationship between them. I am trying to display the content of the parent table in a datagrid in such way that one of the datagrid cells to be expandable, being able to display the content of the child table. What is the(best) way to achieve this? I assume the little black arrow (cell expand) is part of the datagrid control and it shouldn't be designed in any way.

The WpfToolkit datagrid has a feature called Row Details . You can design a UI for the related table in the template. You can also specify that the details be shown always, on selection, or controlled manually.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM