0

Hello, Cab I ask some help for my project?
I'm using datagridview to add, edit and search items in ms access table. I already fixed the search button to work and it displays the selected row when I enter the ID value on textbox. My problem now is how will I be able to edit or delete the selected row result directly from datagridview?

Below is the code I'm using in searching row [search button]

Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
        DataGridView2.DataSource = Me.DataSet4.members.Select("ID=" & TextBox3.Text)
    End Sub
3
Contributors
5
Replies
16
Views
5 Years
Discussion Span
Last Post by artup
0

DataGridView.Rows.Remove() just supply the necessary parameter.

Also check the properties of the gridview.

0

Thank you, but I already solve it before I read and my problem was solved by adding DataGridView2.CurrentCell = DataGridView2.Item(0, intcount) below the DataGridView2.Rows(intcount).Selected = True

I thought this forum is not active anymore so I ask a help from other forum. Anyway thanx again :)

0

Can you share the coding that has been solved. I have the same problem

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.