Sunday, April 8, 2012

Different ways of using Data set in

Title: Example on Data set in

Description:As in previous article we just have learnt the basic and theoretical concept of data set .Now i would like to explain the different ways data set usages .Data set is Independent component with in can be build in three ways
1.manual approach
Dataset ds=New Dataset();
DataTable dt=New DataTable("Orders");
2.Using Data Adapter
SqlDataAdapter da=New SqlDataAdaper("select *from Orders",con);
Dataset ds=New Dataset();
fill method will perform 3 ways.It will establish connection,send select statement to data base and will close the connections
3.using XML storage
Dataset ds=New Dataset();

No comments: