Re: [dabo-users] Very Simple dropdownlist

Author: Ed Leafe

Posted: 2009-07-12 at 17:31:31

On Jul 12, 2009, at 4:19 PM, Carey Gagnon wrote:

> So even a static (for lack of a better phrase) drop down needs to be

> bound

> to the bizobj in order to be wrtten to the database on save?

Yes. A control is just a dumb UI object. However, you can enable data

binding by setting two properties: DataSource and DataField. These

determine the object and property, respectively, that the control is

bound to. In the most typical case, 'DataSource' is the same as the

bizobj's DataSource (the form will figure this out at run time), and

'DataField' is the column in the data that the control's Value should

be bound to. Just by setting those two properties you transform a dumb

UI control into a powerful data display/editing tool.

-- Ed Leafe

©2009 Ed Leafe