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

What are the differences between the response.write() and response.output.write()?

625


Explain server-side scripting?

650


How can u debug your .net application?

682


What is difference between view state and session state?

569


What is the use of execute non query in asp.net?

585






What is the difference between custom controls and user controls?

577


What is datagrid asp.net?

600


Which is better session or viewstate?

590


How are sessions stored?

633


What are strong names?

677


Briefly describe the role of global.asax?

654


Securitywise What are the Enhancements in 2.0?

1574


If 200 is for all successful operation then why do we have 201 response codes?

618


How does session authentication work?

590


How do you create a master page?

651