Click here to Skip to main content
15,905,963 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi again,


i have an grid with one Dropdownlist and three textboxes. Initially, at the page load i have bind an five rows. if suppose user wants to add an new row, i have placed an Linkbutton at bottom. when the user click that Linkbutton, i want to add an new row(Contains 1 dropdownlist and 3 textboxes).

Also i need Paging Concept to include...As i mention at the beginning i have only 5 rows to display. If i add an new row this should appear at the sixth position of the next page.


How to do that?
Please explain it with some code sample...
Posted
Updated 5-Jul-11 0:51am
v2

For adding new row in your Gridview you can add a new row to your dataset and just bind the list again.
Rest all these novice programming samples are already available easily. So just search for it before raising a question.
 
Share this answer
 
Comments
J.Karthick 5-Jul-11 7:58am    
ya...i tried it...but i need to retrieve the entire gridvalues into an datatable and then adding an new row...then again i bind it.

Is that the way you people are using?
Is there any other way? Because i need to retrieve the Grid Value and bind it again.
create DataTable add rows with value from gridview row and add one extra empty row and rebind gridview.
 
Share this answer
 
Comments
J.Karthick 5-Jul-11 8:42am    
Ya...thanks...but i need to show with paging...Is that possible?
Even if i need to add three more rows, it will work??

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