DataGrid Column Names!

Francois

Member
Joined
Nov 27, 2006
Messages
6
Location
South Africa
Programming Experience
1-3
Hallo

How does one change the column text of a DataGrid!?

I have been trying for hours!!!

Please Help Me!!!
 
Nope, did not work, I think I found the answer, but will have to go check first:

dim tbl as datatable
dim col1 as datacolumn
dim col2 as datacolumn

col1.columnname = "Column1"
col1.caption = "Column1"

col2.columnname = "Column2"
col2.caption = "Column2"

tbl.columns.add(col1)
tbl.columns.add(col2)

datagrid1.datasource = tbl
 
Back
Top