Browsedialog, BO and user control


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
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;

}


Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search