Posts

Showing posts from August, 2012

creating dynamic table

private void CreateDynamicTable()     {         PlaceHolder1.Controls.Clear();         // Fetch the number of Rows and Columns for the table         // using the properties         int tblRows = Rows;         int tblCols = Columns;         // Create a Table and set its properties         Table tbl = new Table();         // Add the table to the placeholder control         PlaceHolder1.Controls.Add(tbl);         // Now iterate through the table and add your controls         for (int i = 0; i < tblRows; i++)         {       ...