如何在asp.net的detailsview中添加表? [英] how to add table inside detailsview in asp.net?

查看:62
本文介绍了如何在asp.net的detailsview中添加表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.........

我的数据可以通过使用绑定的DetailsView看到,但是我想要DetailsView的正确格式,所以我想在Details View中添加表格

我该怎么办?

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?

推荐答案

您需要使用模板字段. TemplateField对象使您可以指定包含标记和控件的模板,以自定义DetailsView控件中列的布局和行为.使用ItemTemplate,可以指定DetailsView在列中显示数据时要使用的布局.

参考: MSDN:模板字段 [
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[^]


这篇关于如何在asp.net的detailsview中添加表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆