1.Treelist控件绑定
this.treeList1.DataSource = m_MenuInfos; this.treeList1.KeyFieldName = "MenuId"; this.treeList1.ParentFieldName = "ParaentMenuId"; this.treeList1.RefreshDataSource(); treeList1.Refresh();
2.gridcontro控件绑定
this.gdcUser.DataSource = m_User; this.gdcUser.RefreshDataSource(); this.gdcUser.Refresh();
3.gridLookUpEdit控件绑定
GUE_Type.DisplayMember = "TypeName"; GUE_Type.ValueMember = "TypeId"; GUE_Type.DataSource = m_TypeService.ParenTypeList();