Datagrid&Dataset Refreshing Fail
Hi everyone
First i'm sorry for the if here is not interested with my question
For eg. I have 2 form
in form1 im using to new data insert to access database and closing it
than i have datagridview in form2 but here is my problem i can not get the rows which i actually saved in form1.
I must close the aplication and open again for see newest data.
i used dataset.clear()
but still same problem
waiting for your helps
thanks
Re: Datagrid&Dataset Refreshing Fail
Hey,
you could try something like
Code:
Me.YOURTableAdapter.Fill(Me.YOURDataSet)
Re: Datagrid&Dataset Refreshing Fail
I used to use that codes already but it didnt work :(
vb Code:
Dbdataset.clear()
Me.PilotTableAdapter.Fill(Me.DbDataSet.pilot)
Re: Datagrid&Dataset Refreshing Fail
try something like
vb Code:
with yourDatagridview1
.datasource = nothing
.datasource = yourdatatable
.refresh
end with
but how you will trigger this code is left to you, i mean in some command button click event some thing like
please note code is untested