不好意思,很简单的问题,我也出错!
有一个下拉菜单,UseRoleDropDownList,我想实现:当选择一个项时,DataGrid 里的数据改变。
首先,我在
private void InitializeComponent()
{
this.UseRoleDropDownList.SelectedIndexChanged += new System.EventHandler(this.UseRoleDropDownList_Select); //没有错吧?
this.Load += new System.EventHandler(this.Page_Load);
}
然后:
public void UseRoleDropDownList_Select(object sender, System.EventArgs e)
{
.....................}
//有错吗,为什么下拉时候没有反映啊??????????????
有一个下拉菜单,UseRoleDropDownList,我想实现:当选择一个项时,DataGrid 里的数据改变。
首先,我在
private void InitializeComponent()
{
this.UseRoleDropDownList.SelectedIndexChanged += new System.EventHandler(this.UseRoleDropDownList_Select); //没有错吧?
this.Load += new System.EventHandler(this.Page_Load);
}
然后:
public void UseRoleDropDownList_Select(object sender, System.EventArgs e)
{
.....................}
//有错吗,为什么下拉时候没有反映啊??????????????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货