1
Answer

how Insert data in table using data datagridview

Karan Gupta

Karan Gupta

9y
415
1
hiii friends
 
project spacification
- windows form application in c#
- sql database (service based)
 example-
i have datagridview  with checkbox  and one DELETE button in my project . and i have 2 table in my database.  table1 and table2 both of table have same number of column and same datatype.
 
in datagridview i'm displaying the  data of table1.   i want to perform a DELETE operation and after deleting that data from table1 it  should be moved in table2 abd have have to be delete from its origion table1.
 
i have created it but what happening after if i'm selecting 3 rows ... 1st row moving in table1 to table2 but after that another
2rows are not moved in table2.  
 
i'have attached my code below.
 
 
Answers (1)