By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

Data Grid View Column Names

P: n/a
I'm using a Win Forms Data Grid View control in unbound mode.

When I add columns using the wizard the first item is the column name.
Everything works fine.

However, if you return to the columns collection and look at the
poperties of an individual column the name property is not in the list.
Is there a way to change (or even find) the name of a column in a data
grid view other than looking at it in the *.Designer.vb file?


*** Sent via Developersdex http://www.developersdex.com ***
Feb 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Joe Griffith wrote:
I'm using a Win Forms Data Grid View control in unbound mode.

When I add columns using the wizard the first item is the column name.
Everything works fine.

However, if you return to the columns collection and look at the
poperties of an individual column the name property is not in the list.
Is there a way to change (or even find) the name of a column in a data
grid view other than looking at it in the *.Designer.vb file?


*** Sent via Developersdex http://www.developersdex.com ***


In the columns collections "edit columns" screen there is the column
name. It's in as "(name)" If you sort by name it'll be at the top,
otherwise it's under the Design group.

Chris
Feb 17 '06 #2

P: n/a
Hi,

Take a look at the columns headertext and datapropertyname

DataGridView1.Columns(0).HeaderText

Ken

------------------

<Joe Griffith> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm using a Win Forms Data Grid View control in unbound mode.

When I add columns using the wizard the first item is the column name.
Everything works fine.

However, if you return to the columns collection and look at the
poperties of an individual column the name property is not in the list.
Is there a way to change (or even find) the name of a column in a data
grid view other than looking at it in the *.Designer.vb file?


*** Sent via Developersdex http://www.developersdex.com ***

Feb 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.