When i bind a grid to a datareader in the needdatasource like this:
should i be using the USING keywod like this:
to make sure that the datareader is disposed of?
thanks,
Dana
Dim rs As SqlDataReader = SqlHelper.ExecuteReader(GetConnectionString("mv4Conn", "mvdata", ConfigurationManager.AppSettings("CircViewDB")), Data.CommandType.Text, sbFilter.ToString) Me.RadGrid1.DataSource = rsshould i be using the USING keywod like this:
Using reader As SqlDataReader = getReader() ddlCustomer.DataSource = readerEnd Usingto make sure that the datareader is disposed of?
thanks,
Dana