Table Object Dynamic in C#

Hello Everybody! I'm trying to draw a table no with Designer but code-behind using c#.

IT's possibile to have an example how to make a table dynamic no with designer ? 

I'm tryng but at the end the Engine dosen't print it

I made a newTabke = new TableObject() -> connected to the Manual Build events with this code :

 newTable.ManualBuild += new EventHandler(GenerateNewDynamicTable);

 private void GenerateNewDynamicTable(object sender, EventArgs e)

  {

    

   TableObject newTable = sender as TableObject;


   newTable.PrintRow(0);

   newTable.PrintColumns();

 


   foreach(var col in tabA.Columns)

   {

     

    newTable.PrintColumns();

   }

     

       

     

   newTable.PrintRow(1);

   int z = 0 ;

  

   foreach (DataColumn col in tabA.Columns)

   {

    newTable.PrintColumns();

  

   }


   foreach (DataRow row in tabA.Rows)

   {   int i = 0 ;

     

    

    newTable.PrintRow(2);

        

    foreach (DataColumn col in tabA.Columns)

    {   

     


       

       

     newTable.PrintColumns();

        

     

    }

    

   }



 

  }


 

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.