dataGridView.datasource=tv这里是有问题的因为datasource是必须IEnumerable所以foreach循环删掉直接dataGridView1.DataSource=n.List;
电脑中病毒了