Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if it is possible please give me examples....
gridview control create like this...

|------------------------------------------------------|
|Name:Ayyappa                                          |
|------------------------------------------------------|
|  |-------------------------------------|             |
|  |                                     |             |
|  |       This is Text area             |             |
|  |_____________________________________|             |
|                                        Done  Cancel  |
|______________________________________________________|


[edit]Code block added to preserve diagram format, "ignore HTML in text" option turned off - OriginalGriff[/edit]
Posted
Updated 26-Nov-10 21:17pm
v2

gridview is mostly used to display record details.

You looking for treeview capabilities with parents as "Names", with child objects as Text Areas.

Based on the index of the treeview you can display a radiobutton control on the right "Done" & "Cancel" or just pop everything on a Panel then expose as a User Control.

When everything has been processed for the user - you can loop to build your saving process.

You can use a GridView - but you'll run into several problems.
Do you want the text are 3/4 of the width on Text Area ?
You can only select the total width of a row's cell area in vertical quantums. Your name are will be impaced negatively.

it is possible that you can have 1 row to display the Name
2nd Row Cell 1 = "Text Area"
2nd Row Cell 2 = "Done Button"
2nd Row Cell 3 = "Cancel Button"

You can decide if you want to use standard buttons - or hyperlink buttons. Then make it funky with custom icon graphics or so.

Regards,
X
 
Share this answer
 
Yes you can achieve this by creating dynamic templates for Grid-view control. When you click one of the link in list then you can show the template, once you finished the entry & clicked the Done button you can save the data.

Have a look at this one.

Dynamically Templated 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