protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SuperForm1.DataBind(); } }
protected void SuperForm1_ItemUpdated(object sender, EventArgs e) { Grid1.DataBind(); SqlDataSource2.SelectParameters[0].DefaultValue = "0"; SuperForm1.DefaultMode = DetailsViewMode.Edit; SuperForm1.DataBind(); }
protected void Grid1_Select(object sender, GridRecordEventArgs e) { Hashtable selectedRecord = e.RecordsCollection[0] as Hashtable; SqlDataSource2.SelectParameters[0].DefaultValue = selectedRecord["OrderID"].ToString(); SuperForm1.DefaultMode = DetailsViewMode.Edit; SuperForm1.DataBind(); }
protected void SuperForm1_ItemCommand(object sender, DetailsViewCommandEventArgs e) { if (e.CommandName == "Cancel") { SqlDataSource2.SelectParameters[0].DefaultValue = "0"; SuperForm1.DataBind(); } }
protected void SuperForm1_ModeChaning(object sender, DetailsViewModeEventArgs e) { if (e.NewMode == DetailsViewMode.ReadOnly) { SuperForm1.DataBind(); } e.Cancel = true; }
protected void SetDirection(object sender, EventArgs e) { if (VerticalDirection.Checked) { SuperForm1.Direction = Direction.Vertical; SuperForm1.Width = Unit.Pixel(350); } else if (HorizontalDirection.Checked) { SuperForm1.Direction = Direction.Horizontal; SuperForm1.Width = Unit.Pixel(630); } SuperForm1.DataBind(); }
protected void SuperForm1_ItemUpdated(object sender, EventArgs e) { SqlDataSource2.SelectParameters[0].DefaultValue = "0"; SuperForm1.DataBind(); }
protected void ComboBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e) { SqlDataSource2.SelectParameters[0].DefaultValue = e.Item.Value; SuperForm1.DefaultMode = DetailsViewMode.Edit; SuperForm1.DataBind(); }
protected void CalendarType_Changed(object sender, EventArgs e) { SuperForm1.DataBind(); }
protected void ListBox1_SelectedIndexChanged(object sender, ListBoxItemEventArgs e) { SuperForm1.FolderStyle = "styles/" + e.Item.Value; SuperForm1.InterfaceFolderStyle = "../Interface/styles/" + e.Item.Value; SuperForm1.DataBind(); }
protected void Width_SelectedIndexChanged(object sender, EventArgs e) { ConfigureWidths(); SuperForm1.DataBind(); }