没有PK_FK的RadGrid分层 [英] RadGrid hierarchical without PK_FK
本文介绍了没有PK_FK的RadGrid分层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我在ASP.net中使用RadGrid.我想显示分层网格,但不能在主表和明细表之间建立关系.我认为可能是我的表未定义主键和外键,但是两个表中的一个字段名称相同.
例如. CustomerTable.CustomerID和OrderTable.CustomerID
是否可以在SQL Server的2个表之间不定义PK和FK的情况下进行分层网格处理?如果可以,我该如何映射该字段?
非常感谢.
Dear All,
I''m using RadGrid in ASP.net. I want to show hierarchical grid, but I can''t do relation between master & detail Gridtable. I think may be my tables didn''t define primary Key and foreign key, but one field name is same at both tables.
eg. CustomerTable.CustomerID & OrderTable.CustomerID
Is it possible to do hierarchical grid without defining PK and FK between 2 table in SQL server? If it can how do I map that field?
Thank a lot.
推荐答案
好吧,您在问与第3方控件有关的问题.您是否尝试过在这里查看:
Telerik RadGrid论坛 [
Well, you are asking something related to a 3rd party control. Did you tried looking here:
Telerik RadGrid Forum[^]
Posting here is fine. Might be someone can help but I had found that specific questions related to 3rd party is answered more quickly and accurately at respective forums
这篇关于没有PK_FK的RadGrid分层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文