[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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