像论坛一样的数据列表

编程入门 行业动态 更新时间:2024-10-09 17:31:15
本文介绍了像论坛一样的数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 将两个表数据绑定到论坛等数据列表.我有两个表,分别是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.

更多推荐

像论坛一样的数据列表

本文发布于:2023-11-24 21:59:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627017.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   列表   论坛

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!