StrataFrame Forum

LookupEdit and user control

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

By Chan - 6/21/2007

Hi,

I am using DevExpress lookupedit in my SF user control. I have problem that, my BO datatable is not "translated" to my lookupedit.datasource. Even though I have code in Load() to set lookupedit.datasource manually.



Any ideas?
By Trent L. Taylor - 6/22/2007

Yes.  More than likely the BOs have not been translated by the time your code has been hit in the load.  To verify this, temporarily add a timer for around 1 second and start it in the load.  In the Tick of the timer, see if the BO then has the translated data.  If so, you can then take a permanent approach by implementing the IInitOnFormLoad interface to control the order of the loading sequence....or something of that nature.  But first, make sure this is your problem.