-
January 25th, 2012, 12:25 AM
#1
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)
{
}
-
January 25th, 2012, 05:07 AM
#2
Re: How to rename DataGridView Header by double click
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.
Victor Nijegorodov
-
January 25th, 2012, 12:59 PM
#3
Re: How to rename DataGridView Header by double click
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
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|