dropDownlist
DropDownList ddlregion=(DropDownList)e.Item.FindControl( "drpregion ");
ddlregion.SelectedIndexChanged += new EventHandler(this.ddlregion_change);
ViewState[ "thiscountry "]=e.Item.ItemIndex;
public void ddlregion_change(object sender, System.EventArgs e)
{
DropDownList Drp=(DropDownList)sender;
string region=Drp.SelectedItem.Value;
DataGridItem item=this.listDG.Items[(int)ViewState[ "thiscountry "]];
item.FindControl( " ");
DropDownList ddlcountry=(DropDownList) item.FindControl( "drpcountry "); //(DropDownList)this.listDG.FindControl();
ddlcountry.DataSource=Components.Region.getCountryGroup(region);
ddlcountry.DataTextField= "code ";
ddlcountry.DataValueField= "region ";
ddlcountry.DataBind();
}
------解决方案--------------------你想干什么?
------解决方案--------------------怎么了?