Last Reply on Dec 16, 2011 01:01 AM By Mudassar

Views: 1312   Replies: 16  Answers: 1
Joined: Nov 30, 2011 10:42 PM
Asked: 64

Hi,

I have a footer template in gridview with 4 dropdownlist in a row. Based on the selection of first dropdown i need to load data in the other dropdownlists and similarly for the rest.. How to write events for this?

Suchitra


Joined: Nov 11, 2011 05:52 PM
Location:  
India 
Answered: 2746
Attempted: 3579
0

//Find the Footer Row or EmptyDataTemplate
Control control = null;
    if (GridView1.FooterRow != null)

    {
        control = GridView1.FooterRow;
    }
    else
    {
        control = GridView1.Controls[0].Controls[0];
    }
//Find the other DropDowns here
    DropDownList ddl2 = (control.FindControl("ddl2") as DropDownList);

 

MVP ASP.Net

© 2013 www.aspforums.net All rights reserved. Powered by Excelasoft Solutions.  Excelasoft Solutions

Disclaimer: This site is started with intent to serve the ASP.Net Community by providing forums (question-answer) site where people can help each other. The content posted here is free for public and is the content of its poster. The site does not provide any warranties for the posted content. If you feel any content is violating any terms please contact.
Google+ | FaceBook | Glossary
Google