DataGrid

B

bucrepus

I created a simple datagrid that was populated from a SQL stored procedure.

SP
Select LNAME + FNAME as NAMETEXT, DATEHIRE as DATETEXT from employees

did this in ASP.NET>>
tmpSQL.SQLDB.Open()
tmpSQL.SQLCmd.CommandType = CommandType.StoredProcedure
tmpSQL.SQLCmd.CommandText = "SP_GETNAMES"
Dim DS As DataSet = New DataSet
Dim DA As SqlDataAdapter = New SqlDataAdapter(tmpSQL.SQLCmd.CommandText,
tmpSQL.SQLDB)
DA.Fill(DS)
DataGrid1.DataSource = DS
DataGrid1.DataBind()

works fine with AUOTGENERATE col's on., Displays the data....

But if a make the bound columns in the wizard. ( so I can format the the
date), nothing displays!!??

what other code must I do to make the records display when I manually key in
the column names?

Thanks BUC
 
B

bucrepus

I found the problem, I had to set the datatextfield property to NAMETEXT and
so forth, thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top