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:
01259901
Vues:
22
Ian,

>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?

The call to BindControl() should do it for you. I recommend rechecking your grid's binding settings, and if all is good, set a breakpoint in mmBusinessForm.BindControl() and trace through to see what's happening. If you're unable to figure this out by tracing through we may need to set up a GoToMeeting session so I can look at your development machine to see what's going on.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform