大家好, 将两个表数据绑定到论坛等数据列表.我有两个表,分别是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.
更多推荐
像论坛一样的数据列表
发布评论