G
Guest
I have a function that returns a SqlDataReader created by:
result = command.ExecuteReader(CommandBehavior.CloseConnection);
I then bind the result to a grid control:
myDataGrid.DataSource = sr;
myDataGrid.DataBind();
Do I need to explicitly close the DataReader (and thus the connection) after
the DataBind?
Thanks,
Bill
result = command.ExecuteReader(CommandBehavior.CloseConnection);
I then bind the result to a grid control:
myDataGrid.DataSource = sr;
myDataGrid.DataBind();
Do I need to explicitly close the DataReader (and thus the connection) after
the DataBind?
Thanks,
Bill