General information
Category:
The Mere Mortals .NET Framework
Kevin,
Here is basically where I am at with this issue. At this point I have no rows in either the grid or the dataset of the business object and the screen displays "No Data Found" from the emptydatatext property. (oMachCat is the registered business object)
this.oMachCat.NewRow();
this.oMachCat.Entity.fkcompid = int.Parse(Session["CompPK"].ToString());
this.oMachCat.Entity.mcattype = int.Parse(cboCategory.SelectedValue);
this.oMachCat.Entity.description = txtMCat_Descr.Text.Trim();
this.oMachCat.Entity.machcnt = int.Parse(txtMachCnt.Text);
this.oMachCat.Entity.vendprice = decimal.Parse(txtVendPrice.Text);
this.oMachCat.Entity.collstyle = int.Parse(cboCollStyle.SelectedValue);
this.oMachCat.SaveRow();
At this point the dataset of the business object shows 1 row.
this.grdMachCat.EditIndex = -1;
this.BindControl(this.grdMachCat);
At this point the grid still has no rows and the screen displays "No Data Found". If I continue to add records the dataset gets more and more rows, but the grid never displays and always has a row count of 0. Also of note is that when I start the business object with a row already in it then the grid displays and shows the row, but still will not show any of the rows I add after that point. Any ideas?
Ian Plunkett
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only