Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
How to place a user control in ultraWebGrid Column?
posted

HI

  how to to place a user control in ultraWebGrid Column? Can we add an user control to the grid column or not?

when i am trying to bind the user control i am getting the following error:

Unable to cast object of type 'ASP.test_ascx' to type 'System.Web.UI.WebControls.WebControl'.I have registered the user control as <%@ Register TagPrefix="uc1" TagName="test" Src="test.ascx" %> I placed it outside the ultrawebgrid control like this  <uc1:test ID="test1" runat="server" />   i binded it to the Grid column as "<igtbl:UltraGridColumn  EditorControlID="test1" Type="Custom"> <Header Caption="Test"test Key="Test"></Header></igtbl:UltraGridColumn>"

can any one help me out in this.