• 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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