There is a UserControl named as "UcGridMastersUI.ascx" in my WebApplication, below is the code:
<div class="row"> <div class="col-md-12">
<cc1:XamGridEx ID="grdXamGrid" runat="server"> </cc1:XamGridEx>
I have dragged and dropped this UserControl in "Test.aspx" page, below is the code:
<div> <asp:ScriptManager ID="sm1" runat="server"></asp:ScriptManager> <uc1:UcGridMastersUI ID="UcGridMastersUI1" runat="server" /> </div>
I need to know how shall I call and bind the Grid "grdXamGrid" (using Linq) which is inside UserControl into "Test.aspx.cs" page using C# code.
I am using Asp.Net with WebDataGrid infragistics control and oracle database.I am very new in infragistics. Kindly let me know how to do this.
Any help would be appreciated. Thanks in advance.
To bind the WebDataGrid to data, you would set it's DataSource property and to do this you either need access to the control from outside the user control or you need access to the data source you which to set from inside the user control. This would be the same for accessing the property of any control that is on the UserControl from the containing page and isn't specific to the Infragistics controls.
Here are a few possible ways to do this:
Let me know if you have any questions.