Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Today my question is that how to add records into gridview statically without interacting DB, after adding 4-5 records into gridview then I want to submit into database tables.

What I have tried:

I have design the page and trying to add values into the gridview.
Posted
Updated 23-Oct-17 0:44am

1 solution

I am not sure if I have understood your question completely, from my guess I would suggest you to follow the below articles. if they are not what you are looking for, let me know more details I will revert back.

GridView Static Rows | The ASP.NET Forums

c# - How to add a static row to a gridview - Stack Overflow
 
Share this answer
 
Comments
Member 10241605 24-Oct-17 8:08am    
Actually, I have one employee page columns are EmpId,EmpName,.... I want to save many records into table so that I take one gridview in that I want to add all five record before going going to table.
After adding into gridview all those five records then I want to save into DB tables.

Thanks for your reply.
Atlapure Ambrish 25-Oct-17 3:10am    
I hope your problem is resolved..

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