Solved

modify dataGridView Header

Posted on 2006-11-29
5
251 Views
Last Modified: 2006-11-29
I have my information appearing in my datagrid view, but in the header it shows the name of the columns, I would like to change the headers to what I would like for them to say !

could someone help please !
0
Comment
Question by:prowebinteractive
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
maralans earned 500 total points
Comment Utility
yourdataset.Columns("firstname").HeaderText = "First Name"

or

With yourdatagrid
          .Columns(0).HeaderText = "Your new column name"
End With
0
 

Author Comment

by:prowebinteractive
Comment Utility
I will try that, thanks

I also would like to append first name and last name that appear in 2 fields into 1 field
0
 
LVL 5

Expert Comment

by:maralans
Comment Utility
update yourDataSet
set FullName=CONCAT(Firstname, ' ',  LastName);
0
 

Author Comment

by:prowebinteractive
Comment Utility
sorry, but I dont understand, dataset ?????

do you have some sample code you could show me, im quite new at this vb stuff
0
 

Author Comment

by:prowebinteractive
Comment Utility
what is the property to change the order to which I see the information ?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now