evolet10000
Active member
- Joined
- Nov 22, 2012
- Messages
- 40
- Programming Experience
- Beginner
good day friends
., i have a parent form with datagridview filled with datas from my dataset., and a child form namely add_data... now whenever i want to add a new data to my parent form(datagridview) i use the child form(add data form), i entered datas accordingly and it saves perfectly... now heres my problem whenever i close my add_data form ., old data is still filled in my parent forms datagridview., not showing my newly added data.,
first thing i did was i tried this codes on the formclosing event of my add data form
-frmMain.Bindingsource1..ResetBindings(False)
-frmMain.Datagridview1.Refresh()
but no luck...
next itried something like this after me.close
-frmMain.BindingSource1.Datasource = MyDataSet
no luck again
lastly i tried to just refilled my datas using tableadapters.,. it does the job... but my question is? How can i update the dataset on my parent form? i dont wanna use .fill method everytime., when i login it show the updated data's but thats not how i want it to behave...
help here pls
first thing i did was i tried this codes on the formclosing event of my add data form
-frmMain.Bindingsource1..ResetBindings(False)
-frmMain.Datagridview1.Refresh()
but no luck...
next itried something like this after me.close
-frmMain.BindingSource1.Datasource = MyDataSet
no luck again
lastly i tried to just refilled my datas using tableadapters.,. it does the job... but my question is? How can i update the dataset on my parent form? i dont wanna use .fill method everytime., when i login it show the updated data's but thats not how i want it to behave...
help here pls