« reverse engineering, MSIL spec, salamander | Main | debugging DataGrid behavior »

DataSet load patterns

When using a remote data source that delivers a dataset, it may be necessary to maintain a second DataSet into which new DataSets are merged in the LoadData function. This enables – among other things – data bindings that don’t need to be rebound.

 

The downside is that merging is a very slow (human scale) operation for DataSets with hundreds of rows.

 

If DataAdapters are used to fill a persistent local DataSet, there’s no need to use the merge pattern.

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconDataFormWizardGeneratedCode.asp

 

Still chasing the bug that prevents editing grid cells after a load.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)