what is the use of untyped data set ?

Answer Posted / m_dasharatham

An "untyped" dataset is an instance of the DataSet class
from the System.Data namespace. It’s called “untyped”
because all columns are provided as the base System.Object
type (“object” in C# and “Object” in VB.NET) and must be
coerced to the appropriate type, e.g.

void Form1_Load(object sender, EventArgs e) {
DataSet ds = new DataSet();
sqlDataAdapter1.Fill(ds);
foreach( DataRow row in ds.Tables[0].Rows ) {
string fname = (string)row["au_fname"];
bool contract = (bool)row["contract"];
string item =
string.Format("{0} has a contract: {1}", fname,
contract);
listBox1.Items.Add(item);
}
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a Repeater control how one can provide an alternating color scheme ?

562


Explain diff between dataset and datareader?

526


What is server side session?

518


How do I know asp.net mvc version? : Asp.Net MVC

498


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2024






What is applicatio domain?

571


What are the events in a page life cycle?

534


To redirect the user to another page which method do we use without performing a round trip to the client?

532


What is ispostback method in asp.net?

552


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

517


What do you mean by serialize?

547


Explain the difference between web user control and web custom control?

534


Is asp.net 64-bit enabled? How?

583


Can more than one person use the same login?

570


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1407