If we click DropDownList items Automatically Select Second DropdownLIst in gridview?

Posted by Hemanth.Sutapalli under ASP.NET on 11/26/2012 | Points: 10 | Views : 1432 | Status : [Member] | Replies : 3
HI All,
Please Explain me , if we select dropdownlist automatically get second dropdownlistDetails and if we select second dropdown list automatically get third dropdownlist details. my dropdownlist control present in gridview(EditItemTemplate field) like this...

<Columns>
<asp:TemplateField HeaderText="CID">
<ItemTemplate>
<%#Eval("CID")%>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="catep" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CatId">
<ItemTemplate>
<%# Eval("CatId")%>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="cat" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CateSubId">
<ItemTemplate>
<%# Eval("CategorySubId")%>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="subcat" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
</Columns>


Thanks&&Regards,
S.Hemanth




Responses

Posted by: Sandhyab on: 11/26/2012 [Member] Starter | Points: 25

Up
0
Down
Please Go through this link. This mayhelp you.
http://www.dotnetfunda.com/forums/thread12416-how-to-relate-two-dropdown-list.aspx

Thanks & Regards


Hemanth.Sutapalli, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanth.Sutapalli on: 11/26/2012 [Member] Starter | Points: 25

Up
0
Down
Hi sandhyab,
i am using dropdownlist in gridview(Edititemtemplate field).
Thanks&&Regards,
S.Hemanth

Hemanth.Sutapalli, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Geniusvishal on: 12/16/2012 [Member] Starter | Points: 25

Up
0
Down
Use Cascading Dropdownlist

Refer this link:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=221



Thanks and Regards,
Vishal Ranjan,Software Developer
http://www.dotnetvishal.com

Hemanth.Sutapalli, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response