Karan Gupta

Karan Gupta

  • NA
  • 29
  • 14.9k

how Insert data in table using data datagridview

Apr 7 2015 4:52 PM
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)