Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show link button on last row of Gridview

Status
Not open for further replies.

kalkumar

Programmer
Jul 7, 2006
40
US
Hi,

I have Gridview to enter some details by user. First user enters one row, in that row last column I need to show 'Add another emp' link button to add another row to gridview. if he clicks on add another emp we need to add new row to gridview and show that 'Add another emp' in the newly added row ending column only.

How can I show that link button only on last row and last column of Gridview not for all rows of gridview.

Thanks in advance.

 
In the RowDataBound event of the gridview, add a link button dynamically. Just check if it is the last row being bound (use your datasource's rowcount) and then add it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top