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 December 5th, 2008, 05:03 AM
Authorized User
 
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to karveajit
Default Updating a datatable associated with grid

Hello,

I have a grid which has a dataset (which contains single table) say DS1 associated with it. Now, I want to assign data from another dataset (say DS2) to this grid but I cannot directly bind this dataset to the grid. Hence, I'm removing the only table from DS1 and copying the datatable from DS2 to DS1.
Note : The datatables inside DS1 & DS2 have same structure

Code:
 
DS1.Tables.RemoveAt(0);
DS1.Tables.Add(DS2.Tables[0].Copy());
But, still the grid does not reflect the changes. Can anyone help me out? Thanks in advance!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Datatable Limno .NET Framework 1.x 0 May 28th, 2008 02:37 PM
how to use DataTable.Select Salte C# 2 December 22nd, 2004 04:28 AM
Updating datatable Nikos General .NET 1 November 4th, 2004 04:43 PM
updating db with dataAdapter/dataTable problem mm1234 ADO.NET 0 November 19th, 2003 06:49 AM





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