GridControl如何建立主从表?
我有多个主从表,主表为用户表,从表为用户的外语水平表,家庭成员,工作经验表等等。
我是这样建立的:
try
{
data = new DataSet();
sdaUsers = new SqlDataAdapter( "Select * from Base_Users ", db.conn);
sdaUsers.Fill(data, "Users ");
bsMaster = new BindingSource();
sdaExperiences = new SqlDataAdapter( "Select * from Base_Experiences ", db.conn);
sdaExperiences.Fill(data, "Experiences ");
bsExperiences = new BindingSource();
sdaFamilyMembers = new SqlDataAdapter( "Select * from Base_FamilyMembers ", db.conn);
sdaFamilyMembers.Fill(data, "FamilyMembers ");
bsFamilyMembers = new BindingSource();
sdaWorkExperiences = new SqlDataAdapter( "Select * from Base_WorkExperiences ", db.conn);
sdaWorkExperiences.Fill(data, "WorkExperiences ");
bsWorkExperiences = new BindingSource();
sdaUserLanguages = new SqlDataAdapter( "Select * from Base_UserLanguages ", db.conn);
sdaUserLanguages.Fill(data, "UserLanguages ");
bsUserLanguages = new BindingSource();
sd