Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing mmUltraWebGrid within a Infragistics Tab
Message
De
08/03/2005 05:05:50
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00992370
Message ID:
00993562
Vues:
26
>Bill,
>
>>I have set up the mmUserControl as stated in the "Help" instructions. I have one question - Where does the "Get" statement go - in the class definitions?
>
>Gordon was simply creating a class-level property to hold a reference to the business object. You can simply make this a field (class member variable) if you'd like. For example:
>
>
public class TestUserControl : mmUserControl
>{
>	protected Orders oOrder;
>
>>If so, I have done everything as suggested, and it still does not populate the data. It is hard to tell, because debug breakpoints don't seem to work within the UserControl. I am receiving no errors, but the data is not populating.
>
>I'm not sure why you're breakpoints aren't being hit...at any rate, have you set the BindingSource property of the grid to the appropriate business object?
>
>If you've done this, why don't you post your user control code here so we can figure out what's going on.
>
>Regards,


Kevin,

Here is the code from my WebUserControl2


namespace PMR
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using PMR.Business;
using OakLeaf.MM.Main.Business;
using OakLeaf.MM.Main.Data;
using OakLeaf.MM.Main.Web.UI.WebControls;
using OakLeaf.MM.Main.Web.UI;
using OakLeaf.MM.Main.Collections;

///
/// Summary description for WebUserControl2.
///

public class WebUserControl2 : mmUserControl

{
protected OakLeaf.MM.Main.Web.UI.WebControls.Infragistics.mmUltraWebGrid grdComments;
public DataSet dsComments;
private string mPMR_Num;
private int PMR_Num;
private string mUserID;
protected Allcomment oAllcomment;

private void Page_Load(object sender, System.EventArgs e)
{
mPMR_Num = Request.QueryString["PMR_Num"];
PMR_Num = System.Convert.ToInt32(mPMR_Num);
mUserID = (string)(Session["UserID"]);
PMR_Num = (int)(Session["PMR_Num"]);
this.oAllcomment = (Allcomment)this.BusinessssWebPage.RegisterBizObj(new Allcomment());
this.dsComments = this.oAllcomment.GetCommentRecords(PMR_Num);
this.BusinessWebPage.BindControl(this.grdComments);

}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
}
Bill Benton
Senior Systems Analyst
Nuvell Financial Services
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform