Hey guys i need some help on how to create a connection of a relationship between two forms...for example I have a DataGridView on another form....with a search button.. if i click the search button another window will pop out with a text box lable "Look For:" and a combobox "Look In:" that contains all the field names in that particular datagridview.
kenomote
0
Light Poster
Recommended Answers
Jump to Postcan you please repharse your question i dont get you , well what i understand is that you want to filter your datagrid by selecting values from 2nd form ?
Regards
Jump to PostHere is a simple example:
Form 1Sub ShowDetials() dim RecordID as integer dim DT as datatable Dim DS as new dataset Dim DA as new OleDBDataAdapter dim mCmd as new OleDbCommand dim DetialsForm as new Form2 'I will assume your datagrid has row selection and the …
All 7 Replies
kenomote
0
Light Poster
M.Waqas Aslam
67
Posting Pro in Training
Featured Poster
kenomote
0
Light Poster
G_Waddell
131
Posting Whiz in Training
kenomote
0
Light Poster
kenomote
0
Light Poster
kenomote
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.