Using buttons with a datagrid.

Itchyo

New member
Joined
Mar 16, 2010
Messages
4
Programming Experience
1-3
Hi guys, i'm having some problems using the datagrid in windows forms.

My program requires me to copy a whole row from one datagrid and then enter it into another datagrid when a button is pressed and the condition that n > 0 (the value of n is given by the user) is true
The datagrid is populated with a table from a database.

So i need to:

Create a new dataset with new columns (I can do this)

Check if n>0 when the button is pressed and a row has been selected
Copy selected row into new dataset

My question is how do i get the data from the datagrid and populate the dataset with it.

thanks for help in advance x
 
Back
Top