摘要: 1、 for (int i = 0; i < dt.Rows.Count; i++) { for (int j = 0; j < dt.Columns.Count; j++) { sb.Append(dt.Rows[i][j] + " "); } sb.AppendLine(); } 2、 fore 阅读全文
posted @ 2017-01-24 16:11 FranticPinK 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 一、手动创建一个数据集 private void btnCreateSet_Click(object sender, EventArgs e) { //1.创建一个数据集 DataSet ds = new DataSet(); //2.创建一张表 DataTable dt = new DataTab 阅读全文
posted @ 2017-01-24 15:36 FranticPinK 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、学生数据类 public class Student { public Student() { } public Student(string no,string name) { this.StudentNo = no; this.StudentName = name; } private st 阅读全文
posted @ 2017-01-24 11:17 FranticPinK 阅读(225) 评论(0) 推荐(1) 编辑