Results 1 to 6 of 6

Thread: Datagridview

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    38

    Re: Datagridview

    I know this is not a good practice but this may help...
    Code:
    Private Sub btnInsert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInsert.Click
            frmmain.DataGridView1.Rows.Add(txtFname.Text, txtLName.Text)
        End Sub

  2. #2

    Thread Starter
    Junior Member prince_j325's Avatar
    Join Date
    Oct 2010
    Posts
    21

    Thumbs up Re: Datagridview

    Thanks for the idea... Great!

    Now, after inserting the new values into their appropriate fields, I want the Datagridview to create automatically a new row so I can insert the new set of value to the second row and so on from the textboxes. I already set the property of the texboxes to clear after the click event so I can insert new values to it..
    Any idea Sir?
    Thank you . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width