.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ADO.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Read *.ds file to Dataset Object

Posted By: sjrajaa     Posted Date: November 07, 2012    Points:5   Category :ADO.Net
Hi

I have a *.ds (dataset) file. I want to load this file to dataset object. can someone help me on how to do this?

Thanks in advance!!

Responses
Author: Narayanan             
Posted Date: January 16, 2013     Points: 20   

Hi,
try this Example
   DataRow dr;
dr = dataSet1.Tables[0].NewRow();
dr["UserName"] = textBox1.Text;
dr["Password"] = textBox2.Text;
dataSet1.Tables[0].Rows.Add(dr);
textBox1.Text = "";
textBox2.Text = "";



 dataGridView1.DataSource = dataSet1.Tables[0];


Note: You can't Call Single Row Value from Dataset.




Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend