public override void DataBind() { OdsMap.SelectParameters.Clear(); OdsMap.SelectParameters.Add("MapId", MapId.ToString()); if (MapId == 0) { DvMap.ChangeMode(DetailsViewMode.Insert); } else { DvMap.ChangeMode(DetailsViewMode.ReadOnly); } base.DataBind(); }
public void ChangeMode(DetailsViewMode mode) { DvMap.ChangeMode(mode); }