public override bool SaveData() { if (IsSelect) { DataRowView row = (DataRowView)(this.grid.SelectedRows[0].DataBoundItem); this.RecordID = row["ID"].ToString(); this.ConnectionName = ConvertHelper.AsEmpty(row["ConnectionName"]); return(true); } else { return(service.BatchUpdateConnection(DataSource)); } }