StrataFrame Forum

Browsedialog, BO and user control

http://forum.strataframe.net/Topic9747.aspx

By Chan - 6/22/2007

Hi,

I have browsedialog and BO in user control. In my user control, I have code as below. However, after I keyin publisher name, search, select record from result list and click ok, I hit error "CurrentRowIndex = -1". I have set BOTranslation. Any ideas?





if (this.publisherbrowseDialog.ShowDialog() == DialogResult.OK)

{

this.booksBO.PublisherID = this.publishersBO.PublisherID;

}

By Trent L. Taylor - 6/22/2007

Where are you trying to call the ShowDialog?  The translations may have not yet occurred if you are calling this in the load.  What happens if you reset the BusinessObjectToPopulate?  This property may be holding onto an untranslated reference.

MyBrowseDialog.BusinessObjectToPopulate = MyBOOnTheUserControl