Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
June 23, 2017, 03:26:46 AM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
Pages: [1]
Print
Author Topic: combo, databinding, lazy load  (Read 4050 times)
MAXOUT
Newbie
*
Posts: 2


View Profile Email
« on: October 05, 2010, 07:00:07 PM »

Is it posted before?
            comboBox1.ValueMember = "baId";
            comboBox1.DisplayMember = "baName";
            comboBox1.DataSource = list;   //<--list of au
            comboBox1.DataBindings.Add("SelectedItem", au, "baAddress");
this line cause a no session exception. I think it is affected by first 2 lines. Bindings codes need to access related attributes on au instead of the one in the list. Though this access seems not necessary with the 'list' already set.

The baAddress is an attribute on au with lazy load, itself is a class.

Equals(object obj) on class of baAddress, is overrided for  binding the same obj.

Remove lazy load could be a choice. What other ideas?
« Last Edit: October 10, 2010, 05:36:25 PM by MAXOUT » Logged
Pages: [1]
Print
Jump to: