hi friends,
This s one part of code in my lib proj for find bookrecord..... But i find one difficult in this.. when i select the record based on the BOOKID which s matched my id i want to display that record in a datagrid view alone. How can i set a single record to the datagrid view??
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim c As String
c = InputBox("Enter the ID of the Book", "Search Box")
Dim cmd As New OleDbCommand("select * from bookdetails where bookid=" & c, con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
How can i set a single matched record in my datagrid view ??????
??????
End Sub
Pls Help me friends..... waiting for ur reply....
This s one part of code in my lib proj for find bookrecord..... But i find one difficult in this.. when i select the record based on the BOOKID which s matched my id i want to display that record in a datagrid view alone. How can i set a single record to the datagrid view??
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim c As String
c = InputBox("Enter the ID of the Book", "Search Box")
Dim cmd As New OleDbCommand("select * from bookdetails where bookid=" & c, con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
How can i set a single matched record in my datagrid view ??????
??????
End Sub
Pls Help me friends..... waiting for ur reply....