Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid - change datasource at runtime

Status
Not open for further replies.

AHint

Programmer
Sep 12, 2003
20
GB
I have a datagrid that I change the datasource for at runtime. It is always bound to a strongly typed collection. If I bind to a collection, then bind to another collection with a larger number of items I get an 'Error when committing changes to original data store'. I believe that somehow the binding isn't resetting properly.

I am using:

dgdNominalPostingsWithHeld.SetDataBinding(typedObject, "typedObjectCollection");

when binding.

Have tried setting datasource to null first and refreshing but no luck.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top