Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello i want to insert the number of rows of gridiview in database in just a single query . suppose i have a gridview in my program and i want to insert the hole gridview record at only single time what should i need to do.

What I have tried:

i can use loop for it but issue in performance so please help me.
Posted
Updated 6-Dec-16 6:34am

Hi

Pass grid data as datatable to stored procedure. Refer below url :)

Send (Pass) DataTable as parameter to Stored Procedure in C# and VB.Net[^]


Thanks,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900