DataSet
What is Typed Dataset and UnTyped Dataset? When to use this ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hussain AhmedRank #1,271 · 1.4K reputationPosted May 23, 2014, 3:52 AM EDT
http://net-informations.com/faq/ado/typed-dataset.htm
AND
https://sites.google.com/site/interviewsharing/asp-net/difference-between-typed-dataset-and-untyped-dataset
Jignesh TrivediRank #16 · 50.3K reputationPosted May 23, 2014, 3:55 AM EDT
hi,
Please refer following link it might help you
http://www.c-sharpcorner.com/UploadFile/rupadhyaya/TypedDataSets12032005021013AM/TypedDataSets.aspx
http://collecteddotnet.wordpress.com/2013/05/01/typed-dataset-and-untyped-dataset/
Akhil MittalRank #133 · 16.9K reputationPosted May 23, 2014, 4:02 AM EDT
Akhil MittalRank #133 · 16.9K reputationPosted May 23, 2014, 4:02 AM EDT
example:
northwindDataSet.Products.ProductNameColumn.Caption = "pnames";
2)They have .xsd file (Xml Schema definition) file associated with them and do error checking regarding their schema at design time using the .xsd definitions.
UnTyped DataSets:
1)UnTyped DataSets use table and column collections for their members
ex:
ds.Tables["emp"].Columns["eno"].ReadOnly=true;
2)They do not do error checking at the design time as they are filled at run time when the code executes.
Abhishek KumarRank #510 · 4.8K reputationPosted May 23, 2014, 4:03 AM EDT
Typed dataset :
A typed DataSet is a class that derives from a DataSet. As such, it inherits all the methods, events, and properties of a DataSet. Additionally, a typed DataSet provides strongly typed methods, events, and properties. This means you can access tables and columns by name, instead of using collection-based methods.
Creation :
RightClick solution explorer -> Add New Item then select DataSet.xsd
Untyped dataSet you can created in following manner by creating object of DataSet Class.
Dataset has one table with column name Name.
DataSet ds = new DataSet();
DataTable dt = new DataTable();
DataColumn cname= new DataColumn("Name");
dt.Columns.Add(cname);
ds.Tables.Add(dt);
Hope this helps.
KalaiRank #8,005 · 230 reputationPosted May 25, 2014, 8:59 PM EDT