G
Gary
I have a function defined In a Class1.
Ex
Public Class1
Public Function GetData () as DataSet
******** Using SqlDatAdapter I fill the DataSet
******** It will return the Filled DataSet.
End Function
End Class
I have another Class which calls the GetData function of the first class.
Public Class2
Public Function UdateDatasetTODataBase()
Create Instance of the First class and Call the
GetData Function, which returns the DataSet.
'''''''' I want To Add/Update the Dataset and
reflect back to DataBase.. ****** How to Do this?????????????
End function
End Class
Using SqlDataAdapter this can be Done only if u fill the Dataset in the Same
Function, make Changes and Call the SqlDataAdapters Update method,
But I am filling the Dataset in Different function..
Is there anyway to assign already filled Dataset to SqlDataAdapter ?
TIA,
Gary
Ex
Public Class1
Public Function GetData () as DataSet
******** Using SqlDatAdapter I fill the DataSet
******** It will return the Filled DataSet.
End Function
End Class
I have another Class which calls the GetData function of the first class.
Public Class2
Public Function UdateDatasetTODataBase()
Create Instance of the First class and Call the
GetData Function, which returns the DataSet.
'''''''' I want To Add/Update the Dataset and
reflect back to DataBase.. ****** How to Do this?????????????
End function
End Class
Using SqlDataAdapter this can be Done only if u fill the Dataset in the Same
Function, make Changes and Call the SqlDataAdapters Update method,
But I am filling the Dataset in Different function..
Is there anyway to assign already filled Dataset to SqlDataAdapter ?
TIA,
Gary