2011年1月18日
摘要: 1. 把gridView控件拖放到界面上2. 用代码设置数据源绑定gridview控件OleDbCommand command = new OleDbCommand(); string sql = "select * from admin"; //绑定到数据表admin command.CommandText = sql; command.Connection = shyConnection.conn; shyConnection.conn.Open(); //打开数据连接 OleDbDataAdapter adapter = new OleDbDataAdapter(command); D 阅读全文
posted @ 2011-01-18 08:21 孤独一狼 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 分页制作:1. 先把gridview(GridViewX)控件拖放到界面上,绑定数据(bind());同时对DropDownList做如下操作:this.ddlCurrentPage.Items.Clear(); for (int i = 1; i = this.GridViewX.PageCount; i++) { this.ddlCurrentPage.Items.Add(i.ToString()); }1. this.ddlCurrentPage.SelectedIndex = this.GridViewX.PageIndex;2. 设置gridview的属性AllowPaging=" 阅读全文
posted @ 2011-01-18 08:19 孤独一狼 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 一:界面预览: 1.登陆页面 2.主页面二:功能介绍1. 管理员可以添加成员、对已记录成员进行修改和删除三.数据库设计 Admin:ID,XueHao,Name,PasWord,Type Type:ID,Type,TypeName User:ID,Name,Te,userID userDetail:ID,UserID,XueHao四:整体介绍: 阅读全文
posted @ 2011-01-18 08:18 孤独一狼 阅读(522) 评论(0) 推荐(0) 编辑