Esempio n. 1
0
    private void loadTable()
    {
        TableHeaderRow thr = new TableHeaderRow();
        TableRow       tr  = new TableRow();


        for (int i = 0; i < 7; i++)
        {
            TableHeaderCell thc_day = new TableHeaderCell();
            thc_day.Text  = Utilitaires.GetDayOfWeekName(i);
            thc_day.Width = new Unit("14%");
            thr.Cells.Add(thc_day);
            TableCell tc_day = new TableCell();
            TextBox   tbx    = new TextBox();
            tbx.ID    = "tbx_Day" + i;
            tbx.Text  = GetTimeByDay(i).ToString();
            tbx.Width = new Unit("50%");
            tc_day.Controls.Add(tbx);
            tr.Cells.Add(tc_day);
        }
        tab_FDT.Rows.Add(thr);
        tab_FDT.Rows.Add(tr);
    }