本文介绍了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屋!
更多推荐
[db:关键词]
发布评论