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
70
UltraTAB and UltraGRID i need to insert in execution time (by code not in design)
posted

Hi,

     I have a problem because i'm rookie in .NET and Infragistics. My problem is this:

 I have a UltraTabControl and I want to create new TAB in execution time, at time i need to insert one UltraGrid in each new TAB.

 For example, i have a table with 5 countrys (c1,c2,c3,c4,c5)

I want on tab for country, but if i'll add a new country i need to appear this.

After that in each tab i ned a Ultra Grid to show all invoices that this country.

HELP i'm LOST!!!!!

Thanks.

Parents
  • 44743
    posted

     The following code demonstrates how to dynamically add a tab and add a control to it.

    // Add a new tab to the tab control
    UltraTab tab = this.ultraTabControl1.Tabs.Add( "Tab3", "New Tab" );

    UltraGrid grid = new UltraGrid();
    // Initialize the grid

    // Add the grid control to the controls on the tab
    tab.TabPage.Controls.Add( grid );

     

     

Reply Children