/// <summary> /// 调整位置 /// </summary> /// <param name="index"></param> private void ReviseList(int index) { var property = propertyList.Find(p => p.Id == propertyId); propertyList.Remove(property); propertyList.Insert(index, property); for (int i = 0; i < propertyList.Count; i++) { propertyList[i].Order_No = i; } ProductStructMange_BOMPropertyList_GridControl.DataSource = propertyList; ProductStructMange_BOMPropertyList_GridControl.RefreshDataSource(); }
void DataBind(List <BOMProperty> propertyList) { ProductStructMange_BOMPropertyList_GridControl.DataSource = propertyList; ProductStructMange_BOMPropertyList_GridControl.RefreshDataSource(); }