Insert record into bound datalist or OleDbDataReader

S

Steven K

Hello,

I am binding data from a stored procedure to a datalist:

Dim spCategoryList As OleDb.OleDbDataReader
Dim cmdCategoryList As New OleDb.OleDbCommand("sp_web_Search", cnnSearch)
cmdCategoryList.CommandType = CommandType.StoredProcedure
spCategoryList = cmdCategoryList.ExecuteReader()
dtlCategoryList.DataSource = spCategoryList
dtlCategoryList.DataBind()
spCategoryList.Close() : spCategoryList = Nothing

Is there any way to insert a new row into the DataList control or the
OleDbDataReader at the beginning and end?
 

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

Top