473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Data Grid View Column Names

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
2 4248
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
3
by: Simon Harris | last post by:
Hi All, I have a data grid which displays country names. I now wish to display the country flag images above the names. Can someone please advise how I display an image in a datagrid? I have a...
5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.