Property cannot be set in RDC's current state (Error 40513)

Some properties of the RemoteData control (RDC) cannot be set after you have programmatically set the Resultset property. If you create an rdoResultset object in code and set it to the Resultset property of the RemoteData control, the RemoteData control cannot automatically reset certain properties, such as DataSourceName, Options, Password, QueryTimeout, and UserName. The RemoteData control cannot reset these properties because the rdoResultset object was created outside the RemoteData control.

To reset these properties, close the current rdoResultset object, programmatically set the RemoteData control properties to new values, and call the Refresh method against the RemoteData control to rebuild the result set.

For additional information, search the documentation for the property in question.