Menu

#6 Add FieldName{Field} property to Collection

open
nobody
None
5
2005-04-02
2005-04-02
Pippoppip
No

To avoid mistake typing when I need the field name in
string format it should be usefull a property or a
readonly variable that returns the string name of the
fileds inside Collections.

For example in a combobox:

CustomersCollection customers =
dm.GetTipiMaterialeCollection();

Combobox1.DataSource = cutomers;
Combobox1.DisplayMember =
cutomers.FieldNameCustomerName;
Combobox.ValueMember =
customers.FieldNameCustomerID;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.