Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a GridView with ItemTemplate

There are 5 columns in total, all are TextBox templates.

After last column's (TextBox) leave event one blank row should be added in the GridView.

We can use javascript's "onblur" event if it needs be

Is it possible in any way???

Thanks in advance.
Posted
Updated 18-Apr-11 4:33am
v2

Is it possible in any way???
Yes.

We can use javascript's "onblur" event if it needs be
For adding a new row?

Sounds like you got a homework or someone told you about it in detail and you are putting up whatever you heard of. :)

OnBlur is needed only if you are going to have some kind of validation or dependency on the fields.

Have a look at this article for almost all scenarios of grid: Editable Nested GridView (All-in-One)[^]
 
Share this answer
 
Have a look at this link. It now uses a button click to add new rows but sure you can change it to your needs.
http://geekswithblogs.net/AzamSharp/archive/2008/02/06/119332.aspx[^]

Good luck!
 
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