The last time I did a dropdown list box in VFP I found it hard to determine
the key for the item selected.  Did they ever define the control to hold a
list or an array and present one column and reference another in a selected
status?

 I use this type of context :

 var retVal = (from dwc in db.DWContainers
                              select dwc).ToList();
                ddlContainerType.DataSource = retVal;
                ddlContainerType.DataTextField = "Name";
                ddlContainerType.DataValueField = "ID";
                ddlContainerType.DataBind();

Kind of munged retVal code into this load for ease of use.  Pull all rows
from the Table into a list and bind that to a control.  Identify what to
show and what to reference as needed.

-- 
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cajidmy+wfgkepvaix-u9g4uhfxdvm0f5ct7z7twpq0fuln1...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to