日期:2014-05-18  浏览次数:21058 次

combox 如何读取excel列的名称
把excel 导入之后,放到dataGridView 之中,但我想把他的列名称放到combox中,以供后期功能选择用。。求指导

------解决方案--------------------
DataTable dt
这个就是列名 dt.Columns[0].Caption
------解决方案--------------------
直接取dataGridView列头不就行了,除非dataGridView的列头不是excel的列头