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

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?

Posted on Dec 16, 2011 01:01 AM
//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);