/// <summary> /// 编辑列备注 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Dcolumn_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { var table = Dtable.SelectedItem as BaseTable; if (table != null) { var list = DataSchema.ColumnList(AppCache.GetBuildLink(), table.tabName) ?? new List <BaseColumn>(); var item = e.Row.Item as BaseColumn; var temp = list.Find(a => a.colId == item.colId); list.Remove(temp); list.Add(item); AppCache.SetTableColumn(list, DataSchema.GetColumnKey(AppCache.GetBuildLink(), table.tabName)); } DataSchema.UpdateColComments(e.Row.Item as BaseColumn, Dtable.SelectedItem as BaseTable, AppCache.GetBuildLink()); }