Datagrid Column Header

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

In a Windows form:

I need the code to manually set the header name of a
column in a datagrid to anything i want.

Everytime i retieve records from a database, the coloum
header of the datagrid defaults to the column header of
the coloumn in the table in the database.

so if the column header in the table is Cust_Name, i want
to change it to Customer Name.

NEED THE CODE ASAP ... PLEASE.
Thanx
 
Use DataGridTableStyle



Dim TextBoxCol As New DataGridTextBoxColumn

TextBoxCol.MappingName = '(DATA BASE FIELD NAME)

TextBoxCol.HeaderText = '(DATA GRID DISPLAY NAME)

TextBoxCol.Format = (DATA FORMATING)





Schneider
 
Back
Top