this.BindIndex();
你这个一翻页执行这个了 BindIndex()
你检索的那个就没有绑定上
你这个一翻页执行这个了 BindIndex()
你检索的那个就没有绑定上
解决方案 »
- 各位大侠给看看这段代码吧,老是报错!
- arraylist数组字符串连接问题,求高手!
- |ZYCWPF| 关于WCF开发视频会议功能中,对视频传输的方法的问题:我现在是本地取得视频像头的一帧后转成Byte传给服务器,WCF通过双工回调发送给所有用户
- 正则表达式提取URL问题~~~急
- 请教一个DataGrid合并很多行值的问题
- 运用数组的问题???
- 请问:1.如何实现按Enter键而响应Tab?2.为何Focuse()不起作用?3.如何定义一个按钮的快捷键(CTRL+而非ALT+)
- dafeifei(大飞飞)进来!给分
- WPF如何实现显示一幅图片,但这幅图片的指定的某种颜色得是透明的,就是这种颜色不能覆盖背景色
- if(null!=变量) 这种表达式是什么意思,为什么null放左边。
- FORM调用窗体的问题
- 请教关于microsoft enterprise library caching block的问题
这个事件下绑定下面的 你试一试 你绑的还是以前的信息,不是检索的
string selctStr="select * from indexs where idxItem like '%"+idxItem+"%' and parentID like '1%'";
DBA.BindDataGrid(selctStr,this.dgIndex);
DBA.BindDataGrid(selctStr,this.dgIndex);
这样,绑定全部数据翻页的时候就出问题了,我也想过再隐藏一个datagrid可是觉得太麻烦了。哪位高手有简单的方法啊?
wuhq030710914() 能不能详细说说怎么判断?
{
if(this.txtIdxItem.Text.ToString()==null)
{
string strSql="select * from indexs where parentID like '1%' ";
}
else
{
string strSql="select * from indexs where idxItem like '%"+idxItem+"%' and parentID like '1%'";
}
DBA.BindDataGrid(strSql,this.dgIndex); }
private void btnSelect_Click(object sender, System.EventArgs e)
{
DBA.BindDataGrid(selctStr,this.dgIndex);//绑定数据
}
这样试试,我以前做个一个用DropDownList分类型浏览的,也是这种处理方法.好了,记得结贴.