2X faster development
The ultimate WPF UI toolkit to boost your development speed.
Set a SQL data as datasourceIt can be achieved by making proper SQL based connection with the corresponding data set. The code snippet explains the same. C# class OrderDetails { public static DataSet GetOrderDetials() { try { DataSet ds = new DataSet(); using (SqlCeConnection con = new SqlCeConnection(@"DataSource=Data\Northwind.sdf")) { con.Open(); SqlCeCommand cmd = new SqlCeCommand(@"SELECT Top(100) [Order ID], [Product ID], [Unit Price], Quantity FROM [Order Details] ", con); SqlCeDataAdapter da = new SqlCeDataAdapter(cmd); da.Fill(ds); return ds; } } catch(Exception e) { MessageBox.Show("Exception in connection: \t"+e.Message); return null; } } }
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.