Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Typed DataSet Questions
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
C# Typed DataSet Questions
Miscellaneous
Thread ID:
01310405
Message ID:
01310405
Views:
84
Ok, here's my next set of newby questions. I am learning but questions still abound.....

I have come up with this code from what other people have posted. In this example, DSCustomer is a typed dataset. I am
still in a state of foggyness because all I have is bits and pieces.
string sSelectCommand = "select * from Customers where CustomerKey = 1";

SqlDataAdapter oDataAdapter = new SqlDataAdapter(sSelectCommand, oConnection);
DSCustomer oDataSet = new DSCustomer();
oDataAdapter.Fill(oDataSet, "DSCustomer");

// Add a row
oDataSet.Tables[0].Rows.Add();
1) What's the syntax for changing the value of a data item in the row?

2) How do I save the changes to the back end?

3) Could someone point me to examples of binding the DS to form controls?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform