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

As i am new to working with grid,In C# Can anybody please help me in adding the new row to the grid when the button that is placed outside of the grid is clicked.Please suggest
Posted
Updated 5-Nov-13 5:24am
v5
Comments
Richard C Bishop 5-Nov-13 10:23am    
If you needed it urgently, you would have searched the web for the countless examples that already exist instead of waiting for someone to duplicate the efforts in which the aforementioned section of the sentence describes.
Nelek 5-Nov-13 11:21am    

 
Share this answer
 
Comments
spanner21 5-Nov-13 23:37pm    
thanks ........i think it works
JoCodes 19-Nov-13 1:28am    
Welcome...:)
On Button Click, get the DataSource of GridView, add a new Row to it.
Then bind the GridView again using the updated DataSource.
 
Share this answer
 
Comments
spanner21 5-Nov-13 23:37pm    
thanks Tadit...will try it
Most welcome. My pleasure. :)
this link has helped me a lot...........

Dynamically adding and deleting rows from ASP.NET GridView[^]
 
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