Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 October 18th, 2006, 10:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default working with RowState in DataTable

Hi all:
I need to work (change) the RowState of a DataTable in DataSet.
I need it to set the row for update or insert in DB.

Any idia?! Hope 2 hear from u ASAP Tnx in advance.

Always:),
Hovik Melkomian.
__________________
Always,
Hovik Melkomian.
 
Old February 1st, 2007, 08:06 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello.

I think you can change the RowState in this way:

DataTable dt;
dt.Rows[0].BeginEdit();
dt.Rows[0].EndEdit();

After this the RowState of the dt.Rows[0] row
will be Modified.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datatable Limno .NET Framework 1.x 0 May 28th, 2008 02:37 PM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
how to use DataTable.Select Salte C# 2 December 22nd, 2004 04:28 AM
RowState Problem mm1234 ADO.NET 0 November 19th, 2003 11:33 AM





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