TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
eksypnos123
NA
65
0
Is DataSet just an xsd file?
Nov 17 2004 8:31 AM
I noticed, when using dataform wizard to update a table, that it doesn't instantiate a DataSet like new DataSet(), but instead creates an xsd file and instantiates this one. I thought the xsd file contains only the schema. Here is tha code that VS .NET generates to fill a datagrid with a dataset called ds in a program DataGridTest. Pay attention to this: DataGridTest.ds objDataSetTemp; objDataSetTemp = new DataGridTest.ds(); ds is the ds.xsd file that generates public void LoadDataSet() { // Create a new dataset to hold the records returned from the call to FillDataSet. // A temporary dataset is used because filling the existing dataset would // require the databindings to be rebound. DataGridTest.ds objDataSetTemp; objDataSetTemp = new DataGridTest.ds(); try { // Attempt to fill the temporary dataset. this.FillDataSet(objDataSetTemp); } catch (System.Exception eFillDataSet) { // Add your error handling code here. throw eFillDataSet; } try { grdOrder_Details.DataSource = null; // Empty the old records from the dataset. objds.Clear(); // Merge the records into the main dataset. objds.Merge(objDataSetTemp); grdOrder_Details.SetDataBinding(objds, "Order Details"); }
Reply
Answers (
0
)
combobox goes blueish when binding data
How to use single quot mark ' in DataView Filter expression?