vaioklm Posted January 9, 2008 Report Share Posted January 9, 2008 We are evaluating GridFX for use in our software shop. The majority of our code is encapsulated in custom controls. Ideally, we would like to be able to use GridFX within these custom controls. However, the Grid does not function properly when created within one of these controls as opposed to putting it directly on the ASPX web form. The grid will render fine, but the various features like grouping, hiding, sorting, etc... either do not work at all, or work intermittently. I will include a very simplistic example of what we are trying to do. Do you think it will be possible to use the Grid in this manner? Public Class pnlOrderViewInherits System.Web.UI.WebControls.Panel Dim WithEvents gfxNonPharm As GridFX.WebForms.Grid Protected Overrides Sub CreateChildControls() MyBase.CreateChildControls() gfxNonPharm = New GridFX.WebForms.Grid gfxNonPharm.EnableViewState = True Controls.Add(gfxNonPharm)End Sub Private Sub gfxNonPharm_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles gfxNonPharm.DataBinding Dim netBLPhysician As pgBLPhysician.clsOrders = Nothing Dim dvData As Data.DataView netBLPhysician = New pgBLPhysician.clsOrders dvData = netBLPhysician.GetNonPharm(ConnectionString, VisitIntId, PersonIntID, ManIntID, UserIntId, CareGiverIntId, StartDate, EndDate, VisitsBack, OrderType, OrderCode).Tables(0).DefaultView gfxNonPharm.DataSource = dvDataEnd Sub Private Sub pnlOrderView_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init EnsureChildControls()End SubPrivate Sub pnlOrderView_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then gfxNonPharm.DataBind() End IfEnd Sub End Class Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.