关于使用datagrid的两个问题,help...
private void BindGrid()
{
this.myconn.FillDataSet(titleDataSet1);
this.DataGrid1.DataBind();
}
private void Page_Load(object sender, System.EventArgs e)
{
if(this.IsPostBack)
return;
BindGrid();
}
private void Button1_Click(object sender, System.EventArgs e)
{
this.DataGrid1.CurrentPageIndex=0;
this.myconn.SqlDataAdapter1.SelectCommand.CommandText="select * from title_gov where "+ddlsearchclass.SelectedValue+" like '%"+tbsearchkey.Text+"%'";
BindGrid();
}
private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
this.DataGrid1.CurrentPageIndex=e.NewPageIndex;
BindGrid();
}
我点击按钮button1的时候 DataGrid1显示出要查询的内容,DataGrid1将查询的记录分为4页,,当我点击第2页的时候,却跑到Page_Load时的第2页去了,怎么解决啊?help。。。
还有我怎么定义DataGrid1的行距啊?help。。
{
this.myconn.FillDataSet(titleDataSet1);
this.DataGrid1.DataBind();
}
private void Page_Load(object sender, System.EventArgs e)
{
if(this.IsPostBack)
return;
BindGrid();
}
private void Button1_Click(object sender, System.EventArgs e)
{
this.DataGrid1.CurrentPageIndex=0;
this.myconn.SqlDataAdapter1.SelectCommand.CommandText="select * from title_gov where "+ddlsearchclass.SelectedValue+" like '%"+tbsearchkey.Text+"%'";
BindGrid();
}
private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
this.DataGrid1.CurrentPageIndex=e.NewPageIndex;
BindGrid();
}
我点击按钮button1的时候 DataGrid1显示出要查询的内容,DataGrid1将查询的记录分为4页,,当我点击第2页的时候,却跑到Page_Load时的第2页去了,怎么解决啊?help。。。
还有我怎么定义DataGrid1的行距啊?help。。
...全文
相关推荐
Silverlig v3.0 SDK Help - Changes 内容更新说明
升级重大更改: - 对于使用Silverlight 2编写的程序,如果没有重新编译,这些更改不会立即导致问题。
Silverlig v3.0 SDK Help - Changes 帮助文件,教程
三、升级重大更改:虽然这些变更不会立即破坏Silverlight 2的应用程序,但当应用使用Silverlight 3重新编译时,可能会引发问题。
DXperienceUniversal 10.1.5 Help for VS2010(2010年7月2日版本)
- **在线支持**:DevExpress官网还提供了在线社区和支持服务,遇到问题时可以寻求帮助。
easyUI手册
在压缩包中的 `jquery-easyui-1.2.4 API.CHM` 文件是 easyUI 的离线帮助文档,通常包含详细的 API 参考、示例代码和问题解决方案。
jQuery.EasyUI-1.3.4-API
这个资源“jQuery.EasyUI-1.3.4-API”是由疯狂秀才编译的EasyUI 1.3.4版本的API文档,以CHM(Compiled HTML Help)格式提供,方便开发者查阅和学习。


