0

I have a dataGridView1. In a datagrid you can manually write columnheader names.
(Each Column can have a name)
What I wonder is how it is possible to programatically write a name for example column Numer 1 ?
I have looked at the memeber of the class but cant really find /understand wich of these that could be used.

dataGridView1-> ?
2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Jennifer84
0

I did change Name to HeaderText and this did work.
Thanks...

dataGridView1->Columns[0]->HeaderText = "Ed's Column";

The Columns property gives you access to individual column attributes:

dataGridView1->Columns[0]->Name = "Ed's Column";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.