gridview rows stored in database
-
hi........... I have a gridview and button.When click on button then all gridview rows inserted into database.how to do this? please help me..... thank u.
-
hi........... I have a gridview and button.When click on button then all gridview rows inserted into database.how to do this? please help me..... thank u.
You may have a GridView but without a datasource connected to it it won't display a thing. The contents of the datasource is what you want to store in the database. Have you even looked at examples of GridView?
I know the language. I've read a book. - _Madmatt
-
You may have a GridView but without a datasource connected to it it won't display a thing. The contents of the datasource is what you want to store in the database. Have you even looked at examples of GridView?
I know the language. I've read a book. - _Madmatt
thanks for reply..... I have created datatable and that field are added into gridview.
-
thanks for reply..... I have created datatable and that field are added into gridview.
-
You can bind DataSet with the grid so that adapter will save all the rows on single button click. You need not require to loop for all rows in grid. Adapter will do Bulk Insert.
-
hi........... I have a gridview and button.When click on button then all gridview rows inserted into database.how to do this? please help me..... thank u.
Got that you are a beginner, but have you read anything on how grid row values can be selected and used? Any book, tuorial? Google? In button click event, you have to traverse row by row and insert in DB. Try first.