一组查询后得到的DataGrid数据,如何从第一行更新到最后一行??急求代码!!!
解决方案 »
- nhibernate结合access不能执行查询语句???
- sqlhelper删不掉数据库
- 求:比较成熟的第三方空间以及CodeSmith模板
- 迷糊的问题,那位朋友帮下忙.
- sql的函数支持事务回滚吗??
- [求助]delphi8 开发web程序时时间录入的问题
- 新建web项目不能建,为什么啊?在线等!谢谢!
- SQL2008附加数据库错误5120
- 怎么在DataGrid中实现点击标题在新窗口中显示这条记录的所有字段?
- 在線等待:insert 時出現 object must implement Iconvertible 錯誤
- 怎样让textbox中的文字居中显示???程序中设ForeColor好像没用,字体颜色不变?
- 我只剩下这些分了,希望哪位高手发发善心...... 关于带宽
strSql = "select State,Infotitle,Infocontent,Infotime,Disposetime,DisposeInfo,InfoessueID from T_Info where Infotime between '"+strFrom+"'and '"+ strTo +"'and State='"+ strDispo +"'";
mySQL.Bind_DG(DG_info,strSql);
static public void Bind_DG(System.Web.UI.WebControls.DataGrid dg,string strSql)
{
SqlConnection conn = new SqlConnection(strConn);
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(strSql,conn);
DataSet ds = new DataSet();
da.Fill(ds);
dg.DataSource = ds.Tables[0].DefaultView;
dg.DataBind();
conn.Close();
}