 2007-05-24 10:57
	    2007-05-24 10:57
   2007-05-24 11:21
	    2007-05-24 11:21
  一定的得,没办法呀,求求高手指点一下啊
 2007-05-24 12:24
	    2007-05-24 12:24
   2007-05-24 12:46
	    2007-05-24 12:46
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        'DataGrid 增加行        
        Me.DataGridView1.AllowUserToAddRows = True
        Me.DataGridView1.Rows.Add()
        Me.DataGridView1.AllowUserToAddRows = False
        Me.DataGridView1.Rows(Me.DataGridView1.Rows.Count - 1).Cells(0).Value = TextBox1.Text                Me.DataGridView1.Rows(Me.DataGridView1.Rows.Count - 1).Cells(1).Value = TextBox2.Text 
        Me.DataGridView1.Rows(Me.DataGridView1.Rows.Count - 1).Cells(2).Value = TextBox3.Text 
        ............................
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
       '更新
        Dim b As New SqlClient.SqlCommandBuilder(dataapter)
        dataapter.Update(dataset.GetChanges)
    End Sub

 2007-05-24 13:14
	    2007-05-24 13:14
   2007-05-24 14:11
	    2007-05-24 14:11