DataGridView的编辑列名 [英] DataGridView Edit Column Names
本文介绍了DataGridView的编辑列名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在一个DataGridView编辑列名?
Is there any way to edit column names in a DataGridView?
推荐答案
我不认为有办法做到这一点,而无需编写自定义代码。
我想实现一个ColumnHeaderDoubleClick事件处理程序,并建立正确的列标题顶部的TextBox控件。
I don't think there is a way to do it without writing custom code. I'd implement a ColumnHeaderDoubleClick event handler, and create a TextBox control right on top of the column header.
这篇关于DataGridView的编辑列名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文