Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
Please help me if anyone can. Thanks
Posted
Updated 2-Feb-10 9:54am

I don't know what you mean by 'directly', but your grid view should only ever reflect the data in your database, you should insert new data into the database first, THEN refresh the gridview.

If you meant something else, or want to ask more, edit your post.
 
Share this answer
 
You didnt mentioned if you are talking about Windows grid or ASP.NET grid.

Wel, ASP.NET grid allows you to have new ItemTemplate for your insert row. You might use them to add a new row. You can also use InsertParameter template to add your custom parameters.

Here you go :
ASP.NET GridView - Add a new record[^]

;)
 
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