根据你的描述,我的理解是,你要的是行数是固定的几类,列是动态的,
如果是这样的话给你个实现思路
1、用wpf控件datagrid
2、自己建立数据源
数据源建立思路
1)建一个类 class 暂定为
public class typeclass
{
public int colname { get; set; }
public int a { get; set; }
public int b { get; set; }
public int c { get; set; }
public int d { get; set; }
public int count { get; set; }
}
每个属性对应你的类型,第一个属性,你可以定义为你的列,这样,然后定义一个泛型列表集合,把你所有的类型和值添加进来,最后可以任意转换,不就是你想要的数据,同时可以绑定到datagrid控件。