1
using System.Drawing;
2
using System.Text;
3
using System.Windows.Forms;
4
5
namespace ch02
6
{
7
public partial class Form1 : Form
8
{
9
public Form1()
10
{
11
InitializeComponent();
12
}
13
DataSet测试 by Jrain 2008年7月27日 17时40分40秒
59
60
61
private void btnAdd_Click(object sender, EventArgs e)
62
{
63
this.dgvStudent.DataSource = this.CreateDataSet();
64
//必须是创建的DataTable的名字
65
this.dgvStudent.DataMember = "Students";
66
}
67
}
68
}
69

2

3

4

5

6

7

8

9

10

11

12

13

59

60

61

62

63

64

65

66

67

68

69
