this.otblClass.LoadRow(0);I did look at the source before I sent the first message and really couldn't figure out why the dropdowns weren't working with the empty dataset/new row code I posted. That's why I thought I needed to load the row into the BO somehow. Geez, what am I missing here,<s>? I won't be able to work through the Save code until my dropdown issue is addressed because the FK fields do not allow nulls on Insert (yea, I could plug in some text fields and put in a key value, but that won't solve my problem) I need to understand this dropdown issue first.
{ // tblClass BO this.otblClass = (tblClass)this.RegisterBizObj(new tblClass()); // get an empty dataset DataSet DS = this.otblClass.GetEmptyDataSet("tblClass"); this.otblClass.SetCurrentDataSet(DS); //add a new row this.Class.NewRow("tblClass"); //this.otblClass.LoadRow(0); // don't understand this, can't run without this line, combo breaks ??? // save the dataset to Session Session["tblClass"] = this.otblClass.GetCurrentDataSet(); etc...Thanks!
this.DataRow = dr;>
private void btnSave_Click(object sender, System.EventArgs e) >{ > // Retrieve the original DataSet from the Session variable > DataSet dsOrder = (DataSet)Session["dsOrder"]; > > // Call the Web Form's Save method, passing the business object and the original data. > // The business object raises a Saving event and all bound Web controls > // bind their data back into the DataSet > if (this.Save(this.oOrder, dsOrder, this.oOrder.TableName) == > mmSaveDataResult.RulesPassed) > { > Response.Redirect("CustomerOrders.aspx"); > } >}>