像论坛一样的数据列表 [英] Datalist Databind like forums

查看:99
本文介绍了像论坛一样的数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

将两个表数据绑定到论坛等数据列表.我有两个表,分别是tbl_feedbacks (msgid, message, date, rate, empid)tbl_feedbackmessages (Id,msgid, comments,date,empid).现在,我想先绑定数据列表.第一个应该是消息,下面是绑定与该消息ID相关的注释的消息.我可以获取记录,但是如何像论坛一样进行绑定.
请指导我如何解决这个问题.
预先感谢.


谢谢&问候,

Jeevan.

Hi All,

Bind the two tables data to a datalist like a forums. I have two tables those are tbl_feedbacks (msgid, message, date, rate, empid) and tbl_feedbackmessages (Id,msgid, comments,date,empid). Now I want to bind the data list first. First one should be message and bellow of that bind the comments which are related to that message id. I am able to get the records but how can I bind like forums.
Please guide me how solve this.
Thanks in an advance.


Thanks & Regards,

Jeevan.

推荐答案

一个层次结构的数据网格在这里很合适.母子链接之间存在明确的关系.您可以在数据集中的两个数据表之间建立数据关系,并将它们用作数据网格的源.
A hierarichal datagrid would fit in good here. There is a clear relation of master-child kind of link. You can make a data relation between two datatables in a dataset and use them as source of your datagrid.


这篇关于像论坛一样的数据列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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