locked
Dropdown list box RRS feed

  • Question

  • User-253730406 posted

    In the listDetails  page  I  need to display data from the another table which is not related for FK relation. How should  i handle this. Is their templete or attribute to diaply the dropdown of unrelated data in the insert and edit view.

    Sunday, November 18, 2012 5:02 AM

All replies

  • User-330204900 posted

    Hi shilpak, not exactly sure what is is you want :)

    Sunday, November 18, 2012 12:23 PM
  • User3866881 posted

    I  need to display data from the another table which is not related for FK relation.

    Hi,

    As far as I see, can you show us your:

    1) Table schema and its diagrams?

    2) For an example, what data you wanna show and what you don't want?

    Reguards!

    Sunday, November 18, 2012 8:33 PM
  • User-2061802937 posted

    Hi,

    I could not understand actually.But i hope this is the solution you are searching for,

      DropDownList.DataSource = dataset;
                        DropDownList.DataTextField = "test to display";
                        DropDownList.DataValueField = "text for original";

    and in onselectedindexchanged you can use the value to chang the values in list

    Friday, November 30, 2012 6:53 AM
  • User-326746839 posted

    Hi,

    What in the world is the reason why, if you are going to use that relationship in a screen anyway, you don't include such key in your database entity as a foreign key ?

    Carlos N. Porras
    (El Salvador) 

    Friday, November 30, 2012 9:29 AM