Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmGridView
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01257741
Message ID:
01259715
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform