怎么样取得FooterTemplate中的dropdownlist控件对象?

konglord 2003-08-18 07:42:30
我的datagrid一开始只有一个Footer 然后让用户在dropdownlist中选择 我触发了selectindexchange事件
private void drop_selectedIndexChanged(object sender,System.EventArgs e)
{
DropDownList droplist=(DropDownList)sender;
int selectindex=droplist.SelectedIndex;
this.BindGrid();
droplist.SelectedIndex=selectindex;
}
为什么dropdownlist又恢复到默认值了 这个该怎么解决啊
...全文
20 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,499

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧