R
Ravi Gudlavalleti
Hi,
I have a datagrid to view the results from a database.
I am using autogenerate because the number of columns returned from the
database change.
I would like to change the column headers as the ones returned from the
database have no spaces
(example: need to change "EMP_NAME" to "EMPLOYEE NAME" or just "NAME")
I tried the following command
datagrid.columns(0).headertext = "NAME"
datagrid.columns(1).headertext = "SSN"
but it didnt work. I said index out of range. When I tried to see how many
columns were there in the grid using
command
lable.text = datagrid.columns.count
it returned 0 no matter how many columns I had.
How do I get around this problem? Any suggestions?
Thanks in advance.
I have a datagrid to view the results from a database.
I am using autogenerate because the number of columns returned from the
database change.
I would like to change the column headers as the ones returned from the
database have no spaces
(example: need to change "EMP_NAME" to "EMPLOYEE NAME" or just "NAME")
I tried the following command
datagrid.columns(0).headertext = "NAME"
datagrid.columns(1).headertext = "SSN"
but it didnt work. I said index out of range. When I tried to see how many
columns were there in the grid using
command
lable.text = datagrid.columns.count
it returned 0 no matter how many columns I had.
How do I get around this problem? Any suggestions?
Thanks in advance.