473,503 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move DataGrid Row to Another DataGrid

I have a form with two DataGrid controls, each bound to different tables in a dataset. I would like to be able to have the user click a button, and have the currently highlighted row in datagrid1 copy over to datagrid2 as a new row.

Is that possible? I have been playing around with different things and cannot figure out how to do this...

Thanks in advance for your help,

Jason
Nov 20 '05 #1
1 2015
Use

Dim dro as DataRow = DestinationDataTable.NewRow()

Now set the values of the current row in your grid to each of the respective
values of dro.

Finally just add the row to DestinationDataTable ie
DestinationDataTable.Rows.Add(dro)

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"jgrims" <jg****@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
I have a form with two DataGrid controls, each bound to different tables in a dataset. I would like to be able to have the user click a button, and
have the currently highlighted row in datagrid1 copy over to datagrid2 as a
new row.
Is that possible? I have been playing around with different things and cannot figure out how to do this...
Thanks in advance for your help,

Jason

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1861
by: ari | last post by:
Hey all, I have a project where I can use the move up move down buttons I see often. Does anyone know how to implement that? For instance, I have datagrid of records and if I select a record and...
2
8784
by: Anand Ganesh | last post by:
Hi All, How to Implement Move Next, Move Previous, Last Record and First Record in a DataGrid Control ? Is there any standard tool available in the tool box button? Thanks for your time. ...
7
3066
by: tshad | last post by:
Is there a way to move a row in a Datalist up or down without having to re-read the data? I have a datalist which has embedded Datagrids in it. I want to allow the user to move a row up or down...
1
1667
by: Arthur Dent | last post by:
Heres the deal... i have a datagrid which displays products in a category. Any category has its own set of columns which show up in the grid, so it is defined as AutoGenerateColumns=True There...
3
13561
by: Rich | last post by:
Hello, If my datagrid is based on a dataTable (t1) and the currency manager is also bound to t1 and I do a find on a key dim dRow As DataRow, t1 As DataTable .... dRow = t1.Rows.find(somekey)...
1
351
by: jgrimsman | last post by:
I have a form with two DataGrid controls, each bound to different tables in a dataset. I would like to be able to have the user click a button, and have the currently highlighted row in datagrid1...
5
4713
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event...
1
2956
by: Stephen | last post by:
Hi, I want to move rows up and down in a datagrid and Peter Kellner suggested: "One way you could do it is using GridView and have "move up" and "move down" button's on each row." Grid View...
10
9281
by: Peter | last post by:
VS 2003 .NET 1.1 What is the fastest way to move 2 dimensional Array of objects into a DataTable, besides using a loop? I have a about 30,000 elements in my array and I have to move it into a...
0
1470
by: sheirlyanita | last post by:
In a datagrid... How to move the cursor to the up cell and down cell in a datagrid... I have tried alot..Plz help me.. Am able to move the cursor from one column to another column using tab action.....
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.