Dynamic data matrix WPF

后端 未结 4 1895
面向向阳花
面向向阳花 2021-01-16 09:57

I want to create a completely dynamic data matrix. For eg,

       Column1 Column2 Column3....
id1      id11    id12     id13...
id2      id21    id22     id2         


        
4条回答
  •  一整个雨季
    2021-01-16 10:30

    Yeah, it sounds like you could make very good use of the tag. So, to replicate your example:

      
    
      
      
      
      
    
    
      
      
      
      
      
    
    
    Column1
    Column2
    Column3
    
    id1
    id11
    id12
    id13
    
    id2
    id21
    id22
    id23
    
    .
    .
    .
    .
    
    .
    .
    .
    .
    

    You can also use the WPF datagrid, available in WPF 4.0. If you cannot use the 4.0 Framework, than you still could use the datagrid under the codeplex release for .NET 3.5 SP1. See WPF Toolkit

    You could also use the ListView, yes. WPF is very flexible, so you have a lot of choices. Program Grid tags as above, or use a datagrid or listBox or listView with an ItemSource set on the 3 latter choices.

提交回复
热议问题