I have a form form1 and there is a search button for searching the doctor when i click search button then a new form opens i.e. form2 and in form2 there is a data grid view control and i want when i select any doctor and click on apply button then this doctor id and name comes onto the form1 textbox1 and textbox2.
This is for using C# window application and i am using sql database.