Custom DataGrid column with a CellTemplate and binding

后端 未结 2 1573
醉酒成梦
醉酒成梦 2021-01-06 06:03

I need to create a reusable DataGrid column with a custom CellTemplate. This CellTemplate should, among other things, contain a TextBlock control to which I need to bind val

2条回答
  •  感情败类
    2021-01-06 06:25

    I think the simplest thing to do is to create a customcontrol then use it like this:

                
                    
                        
                            
                        
                    
                
    

    I did something similar yesterday, and it works pretty well

提交回复
热议问题