First of all I would like to say that I am a newbie to VB.NET & ADO.NET. For the following problem I searched in google as well as in this forum for "findrows" method and other things which didnt help me.
My problems is, I would like to search inside a data grid and refresh that grid to have rows which matches the search cirteria and display it inside that grid.
This is my code what I have done.
In The Form Load Event
Try
daMain.Fill(dsMain, "tblDigitArchive")
grdMain.SetDataBinding(dsMain, "tblDigitArchive")
grdMain.RetrieveStructure()
grdMain.Refresh()
Catch Eror As Exception
MsgBox(Eror.Message, MsgBoxStyle.Critical, "Error Opening Database")
mConn.Close()
EndTry
Now I request you guys & gals to please post a code by which I can search for multiple rows depending upon an entry from text box inside that same data grid "grdMain" .
Thanks in advance
My problems is, I would like to search inside a data grid and refresh that grid to have rows which matches the search cirteria and display it inside that grid.
This is my code what I have done.
In The Form Load Event
Try
daMain.Fill(dsMain, "tblDigitArchive")
grdMain.SetDataBinding(dsMain, "tblDigitArchive")
grdMain.RetrieveStructure()
grdMain.Refresh()
Catch Eror As Exception
MsgBox(Eror.Message, MsgBoxStyle.Critical, "Error Opening Database")
mConn.Close()
EndTry
Now I request you guys & gals to please post a code by which I can search for multiple rows depending upon an entry from text box inside that same data grid "grdMain" .
Thanks in advance