我如何使用c#从asp.net中的sql数据库中的表控件中显示数据 [英] how do i display data in table control from sql database in asp.net using c#

查看:290
本文介绍了我如何使用c#从asp.net中的sql数据库中的表控件中显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Asp.Net中的表控件中显示数据.
请提出建议.

I want to display data in table control in Asp.Net.
Please suggest.

推荐答案

好,要在表控件中显示数据,您需要在运行时创建表,行和列,并在其中设置值.

因此,就好像您有一组数据,创建了一个循环并继续基于数据向表中添加行.

如果有帮助,则将Datagrid呈现为表格,并且易于填充.
Well, to display data in table control, you need to create the table, rows and columns at runtime and set the controls with values in it.

So, it would be like, you have a set of data, you create a loop and keep on adding rows to table based on the data.

If it helps, Datagrid is rendered as a table and it is easy to populate.


请参见

这篇关于我如何使用c#从asp.net中的sql数据库中的表控件中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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