none
Displaying items in dropdownlist in gridview RRS feed

  • Question

  • Respected All;

                       Once plz see the below screen:

    Drag a column header here to group by that column.

    ORDER ID
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1HeaderContainer_ctl02_ctl06" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1HeaderContainer$ctl02$ctl06" type="checkbox" />
    SHIP NAME
    SHIP ADDRESS
    SHIP COUNTRY
               
    10248
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl02_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl02$ctl17" type="checkbox" />
    Vins et alcools Chevalier
    Vins et alcools Chevalier
    59 rue de l'Abbaye
    Brazil
    10249
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl03_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl03$ctl17" type="checkbox" />
    Toms Spezialitäten
    Toms Spezialitäten
    Luisenstr. 48
    Germany
    10250
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl04_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl04$ctl17" type="checkbox" />
    Hanari Carnes
    Hanari Carnes
    Rua do Paço, 67
    Austria
    10251
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1EditControl2" class="ob_iTIE" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1EditControl2" type="text" value="Victuailles en stock" />
    if(typeof(ob_Grid1EditControl2)!='undefined'){if(typeof(ob_Grid1EditControl2.destruct)=='function'){ob_Grid1EditControl2.destruct();}}ob_Grid1EditControl2 = new Obout.Interface.OboutTextBox("ob_Grid1EditControl2","ob_iTob_Grid1EditControl2Container","ctl00_pageContent_PaperBox1_Grid1_ob_Grid1EditControl2","",true,false,false,{},false,null,{'N': 'ob_iTCN','O': 'ob_iTCO','A': 'ob_iTCA','D': 'ob_iTCD'},"",true);
    Victuailles en stock
    <textarea id="ctl00_pageContent_PaperBox1_Grid1_TemplateEditAddress_ctl00_txtAddress" cols="20" rows="2" name="ctl00$pageContent$PaperBox1$Grid1$TemplateEditAddress$ctl00$txtAddress">2, rue du Commerce</textarea>
    if(typeof(txtAddress)!='undefined'){if(typeof(txtAddress.destruct)=='function'){txtAddress.destruct();}}txtAddress = new Obout.Interface.OboutTextBox("txtAddress","ob_iTtxtAddressContainer","ctl00_pageContent_PaperBox1_Grid1_TemplateEditAddress_ctl00_txtAddress","",true,false,true,{},false,null,{'N': 'ob_iTaCN','O': 'ob_iTaCO','A': 'ob_iTaCF','D': 'ob_iTaCD'},"",true);
    <input id="ob_iDdlddlCountriesTB" class="ob_iDdlIE" style="visibility: visible;" name="ob_iDdlddlCountriesTB" readonly="readonly" type="text" value="France" />
    • AustraliaAustralia
    • BrazilBrazil
    • CanadaCanada
    • DenmarkDenmark
    • FinlandFinland
    • FranceFrance
    • GermanyGermany
    • ItalyItaly
    • JapanJapan
    • NetherlandsNetherlands
    • NorwayNorway
    • SingaporeSingapore
    • SpainSpain
    • SwedenSweden
    • UKUK
    • USAUSA
    <input id="ctl00_pageContent_PaperBox1_Grid1_TemplateEditCountry_ctl00_ddlCountries" name="ctl00$pageContent$PaperBox1$Grid1$TemplateEditCountry$ctl00$ddlCountries" type="hidden" value="France" /><input id="ob_iDdlddlCountriesSIS" name="ob_iDdlddlCountriesSIS" type="hidden" value="5" />
    if(typeof(ddlCountries)!='undefined'){if(typeof(ddlCountries.destruct)=='function'){ddlCountries.destruct();}}ddlCountries = new Obout.Interface.OboutDropDownList("ctl00$pageContent$PaperBox1$Grid1$TemplateEditCountry$ctl00$ddlCountries","ddlCountries","ob_iDdlddlCountriesMainContainer","ob_iDdlddlCountriesItemsContainer","ob_iDdlddlCountriesTB","ctl00_pageContent_PaperBox1_Grid1_TemplateEditCountry_ctl00_ddlCountries","ob_iDdlddlCountriesSIS",0,"100%","150px","175px",true,null,null,false,null,{'N': 'ob_iDdlITCN','O': 'ob_iDdlITCO','AC': 'ob_iDdlITCAC','AO': 'ob_iDdlITCAO','D': 'ob_iDdlITCD'},false,true,0,"","","","","",true);
    10252
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl06_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl06$ctl17" type="checkbox" />
    Suprêmes délices
    Suprêmes délices
    Boulevard Tirou, 255
    Belgium
    10253
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl07_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl07$ctl17" type="checkbox" />
    Hanari Carnes
    Hanari Carnes
    Rua do Paço, 67
    Brazil
    10254
    <input id="ctl00_pageContent_PaperBox1_Grid1_ob_Grid1BodyContainer_ctl08_ctl17" name="ctl00$pageContent$PaperBox1$Grid1$ob_Grid1BodyContainer$ctl08$ctl17" type="checkbox" />
    Chop-suey Chinese
    Chop-suey Chinese
    Hauptstr. 31
    Switzerland

     

     

     

     

     

     

     

     


    Here, the country names are under dropdownlist.
    If i click on edit button in gridview, the dropdownlist with selected item in the list should be displayed. But when im clicking on edit button,items in dropdownlist are displaying not with selected items in the list.
    I want to display selected items like above screen when i click on edit button.

     


    • Moved by Martin_XieModerator Monday, August 22, 2011 3:13 AM Redirect to ASP.Net Forum for better support. (From:Visual C# General)
    Tuesday, August 16, 2011 7:07 AM

All replies