Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 3rd, 2007, 03:08 AM
Authorized User
 
Join Date: Oct 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add a DataRow to a DataSet?

Hi All,

I need to insert a DataRow as the last row of a DataSet....
How do I do this???

Thanks and Regards,
Jhansi
__________________
Thanks and Regards,
Jhansi
 
Old January 8th, 2008, 09:36 AM
Authorized User
 
Join Date: Dec 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pannasn
Default

Hi,

try this one,

DataRow row;
row=dataset.Tables[0].NewRow();
dataset.Tables[0].Rows.Add(row);



Thanks & Regards
Panna





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help understanding DataRow asp_convert ADO.NET 3 March 13th, 2007 02:39 PM
Error occur when Add a DataRow[] into a DataTable sendtogary Visual C++ 0 March 27th, 2006 05:37 AM
how to add a dataRow[] into a datatable sendtogary VS.NET 2002/2003 0 March 27th, 2006 05:32 AM
How to Add a new element to Dataset after build Namita Crystal Reports 3 October 4th, 2004 01:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.