Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,
I want to create a table using C#. Either grid view or html table.
where a row contains a Reply button and a question.
when some one wants to reply, on clicking reply button, a new text box should appear and on submitting the text, it should be displayed in the very next row.

same as the way we do in Code Project .
how to achieve it?
please help.

Thank you,
Posted
Updated 7-Feb-13 1:06am
v2

1 solution

In the ItemTemplate of the gridview create a textbox with multiline property.
and create the same in the EditItemTemplate with multiline property.
And make sure that it's invisible in ItemTemplate of the gridview.

And coming to sourcecode in the click event of that button get the textbox properties using rowindex and then make that text visible and write your own code to store the values in database.

I hope it helps your problem some how.
 
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