开发者

select from BindingList

开发者 https://www.devze.com 2023-03-21 11:10 出处:网络
I have the following Object PatientEligibilityObject It has One To Many relation with PatientsE开发者_JAVA百科ligibilitiesDoctorsSpecialties

I have the following Object

PatientEligibilityObject

It has One To Many relation with PatientsE开发者_JAVA百科ligibilitiesDoctorsSpecialties

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


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.


I used Datatable filled using LINQ query in which i could be able to select relational table >>

0

精彩评论

暂无评论...
验证码 换一张
取 消