绑定方法不在pageloade和ispastback里无法绑定数据,gridview不显示
解决方案 »
- .net2008 开发,ajax控件网站移植问题
- POP3接收接收大咐件邮件解决方案
- 枚举怎么和数据挂勾呀?
- 当两个表中的字段相同时,是怎么分别选择读取的?
- <textarea name=remark cols=70 rows=5></textarea> remark.Text=dr["remark"].ToString();结果是值传不过来,请问怎么让值传过来?
- 问题:上传管理web系统如何打开文件选窗口
- 正则表达式:只允许输入4-15位任意字符
- [求助]如何解决windows 2003下的w3wp.exe占用CPU100%的问题???
- asp.net错误,不懂,虚心求教
- [急救]关于C# ADO连接数据库,在线等待
- asp.net浏览器怎么关闭
- 关于IE和firefox的问题!!!!!
gridview是动态生成的?
Gridview.DataBind();了吗?
DisInfo.DataSource = dt;
DisInfo.DataBind();在其他的方法里绑定的,无效
{bindGrid();
}private void bindGrid()
{
DisInfo.EditIndex = -1;
DisInfo.DataSource = dt;
DisInfo.DataBind();
}
{
if(!isPostback)
{
bindGrid();
}
} private void bindGrid()
{
DisInfo.EditIndex = -1;
DisInfo.DataSource = dt;
DisInfo.DataBind();
}