How to rename DataGridView Header by double click
I am having a datagrid view. In that suppose I give the header name as wrong, suppose say, instead of "test", i gave it as "tst". So i need to rename in this case. So what i expect is I need to double click that header and rename it. But in code I can't directly give it as "test", since it can be whatever. By double clicking i need to change in that display itself. I can able to catch the double click event. It is as below. Please suggest me a code which makes me to edit and rename the header.
private void dgvParametersEdit_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
}
Re: How to rename DataGridView Header by double click
Quote:
Originally Posted by
Rayner
...
private void dgvParametersEdit_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
}
DataGridViewCellMouseEventArgs Class does NOT belong to native C++. It is a .Net class. So, you should ask your question in some of the .Net or Managed C++/CLI forum.
Re: How to rename DataGridView Header by double click
Quote:
Originally Posted by
VictorN
[...] So, you should ask your question in some of the .Net or Managed C++/CLI forum.
I'd even say it rather is C#. So, @OP, the correct forum section is this: http://www.codeguru.com/forum/forumdisplay.php?f=11