Click here to Skip to main content
15,916,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey guys.........

My data visible through detailsview using bound flied but i want proper format of detailsview so i want to add table inside details view

what can i do?
Posted

1 solution

You need to use template fields. A TemplateField object enables you to specify templates that contain markup and controls to customize the layout and behavior of a column in a DetailsView control. Using an ItemTemplate, you can specify the layout to be used when the DetailsView displays data in a column.

Refer: MSDN: Template Field[^]
 
Share this answer
 
Comments
shinebudy 25-Jul-12 7:49am    
when i take bound filed inside template filed it returns error;
Sandeep Mewara 25-Jul-12 10:30am    
It's either bound field or template field. Not one inside another.

Following datagrid sample for template field should explain you:
MSDN: Using TemplateFields in the GridView Control[^]
MSDN: Creating a Custom Column in a GridView Web Server Control[^]
shinebudy 25-Jul-12 8:05am    
what can i do?

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