从绑定列表中选择
我有以下对象
PatientEligibilityObject
它与 PatientsEligibilitiesDoctorsSpecialties 具有一对多关系
我将 Child 值填充到网格中,如下所示: -
Dim lst = PatientEligibilityObject.PatientsEligibilitiesDoctorsSpecialties.GetNewBindingList()
它用表中的所有列填充网格 < strong>患者资格医生专业
ID
患者资格 ID
DoctorSpecialtyID
注册日期 注册用户ID
注册计算机ID
取消日期
取消用户ID
CancelComputerID
而不是列 DoctorSpecialtyID 我想显示
DoctorSpeciality.Code 并且 DoctorSpeciality.EngName
请注意,PatientsEligibilitiesDoctorsSpecialties 和 DoctorsSpecialties 之间存在外键
I have the following Object
PatientEligibilityObject
It has One To Many relation with PatientsEligibilitiesDoctorsSpecialties
I fill the Child value into Grid like following : -
Dim lst = PatientEligibilityObject.PatientsEligibilitiesDoctorsSpecialties.GetNewBindingList()
It fills the grid with All Columns in the Table PatientsEligibilitiesDoctorsSpecialties
ID
PatientsEligibilityID
DoctorSpecialtyID
RegDate
RegUserID
RegComputerID
CancelDate
CancelUserID
CancelComputerID
Instead Of Column DoctorSpecialtyID i want to Display
DoctorSpeciality.Code And
DoctorSpeciality.EngName
Notice that there is a foreign key between PatientsEligibilitiesDoctorsSpecialties and DoctorsSpecialties
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MSDN 中的示例
是否解释了如何操作修改绑定到表的 DataGridView 中的列,对您有帮助吗?
您删除一列并在其位置插入不同样式的列。
Would the sample in MSDN
where they explain how to modify columns in a DataGridView bound to a table, help you?
You remove one column and insert a different style column in it's place.
我使用使用 LINQ 查询填充的数据表,在其中我可以选择关系表 >>
I used Datatable filled using LINQ query in which i could be able to select relational table >>