Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

modify dataGridView Header

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
prowebinteractive
Asked:
prowebinteractive
  • 3
  • 2
1 Solution
 
maralansCommented:
yourdataset.Columns("firstname").HeaderText = "First Name"

or

With yourdatagrid
          .Columns(0).HeaderText = "Your new column name"
End With
0
 
prowebinteractiveAuthor Commented:
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
 
maralansCommented:
update yourDataSet
set FullName=CONCAT(Firstname, ' ',  LastName);
0
 
prowebinteractiveAuthor Commented:
sorry, but I dont understand, dataset ?????

do you have some sample code you could show me, im quite new at this vb stuff
0
 
prowebinteractiveAuthor Commented:
what is the property to change the order to which I see the information ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now