hello,
i create new desktop application in c#.
i have three windows forms , 1st form name- school details form
2nd form name - teacher details form
3rd form name - student details form
now in school details form i put 2 textbox for teacher name and teacher city and put 1 button near textbox.
now also school details form i put another 2 textbox for student name and student city and put 1 button near textbox.
now here when i click button teacher then open new form like 'teacher's details' in which only gridview and teachername and city display, now I use DataGridview Cell_Click event when i click on particular record it move to main School form.and this form close.
now same thing i do on another student form , on datagrid Cell_click event it move to school details page and selected data in textbox.
but problem is when i select 1st button click it display data , and when i click 2nd button it retrive data but 1st data remove automatically.
school load event occurs and selected data.
so how can i stop that.and pass data without load event.
What I have tried:
hello,
i create new desktop application in c#.
i have three windows forms , 1st form name- school details form
2nd form name - teacher details form
3rd form name - student details form
now in school details form i put 2 textbox for teacher name and teacher city and put 1 button near textbox.
now also school details form i put another 2 textbox for student name and student city and put 1 button near textbox.
now here when i click button teacher then open new form like 'teacher's details' in which only gridview and teachername and city display, now I use DataGridview Cell_Click event when i click on particular record it move to main School form.and this form close.
now same thing i do on another student form , on datagrid Cell_click event it move to school details page and selected data in textbox.
but problem is when i select 1st button click it display data , and when i click 2nd button it retrive data but 1st data remove automatically.
school load event occurs and selected data.
so how can i stop that.and pass data without load event.