T
tshad
I am confused on whether a connection is open or closed.
I was told you didn't have to close a connection if you were binding to
DataGrids, DataReaders, DropDowns etc - that they would close them
themselves.
Is this the same for both the DataAdapters and DataReaders?
I was told the DataAdapters would leave the connection as it found it. If
the connection was open, it would leave it open and if was closed it would
close it.
What about if in the middle of binding to the DataGrid it got an error?
Would it close the connection or do you need to close it yourself?
Thanks,
Tom
I was told you didn't have to close a connection if you were binding to
DataGrids, DataReaders, DropDowns etc - that they would close them
themselves.
Is this the same for both the DataAdapters and DataReaders?
I was told the DataAdapters would leave the connection as it found it. If
the connection was open, it would leave it open and if was closed it would
close it.
What about if in the middle of binding to the DataGrid it got an error?
Would it close the connection or do you need to close it yourself?
Thanks,
Tom