What are the IDictionary parameters for DataSourceView.Update meth

I

iScout

I am trying to write a custom control in VS2005 with C#. The control
displays a list of fields bound to a custom object. The display works great,
but I can't figure out the IDictionary values that need to be passed to the
DataSourceView.Update method. My code looks like this:

protected override void PerformUpdate(IShippingAddress dataItem)
{
dataItem.Address.Copy(this.AddressField.Address);
dataItem.ShipToMethod = (ShipToMethods) ShipToMethodField.Value;

DataSourceView view = GetData();

// HACK: This is a kludge because we can't find anyone
// that knows how to use these IDictionary parameters
view.Update(new Hashtable() ,
new Hashtable() ,
new Hashtable() ,
new DataSourceViewOperationCallback(delegate(int count ,
Exception exception)
{
return true;
}));

//Throw an event to inform anyone who cares
OnAddressChanged(new AddressChangedEventArgs(dataItem));
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top