I bind a SQLDataSource
to a GridView
using GridView.DataBind()
and these queries often take a significant time to execute.
What code would cancel an in-progress DataBind()
?
I can't seem to find any method to stop the DataBind()
or even close the DB connection.
Rebind Attempt:
myConn.ConnectionsString = ""
myConn.SelectCommand = ""
myGrid.DataSource = Nothing
myGrid.DataBind()
Dispose Attempt
myConn.Dispose()
myGrid.Dispose()
Neither attempt actually closed the connection. Oracle still indicated it was still connected and executing the query.