Author: azamtim | Posted on: 3/17/2009 2:50:32 AM | Views : 280

 Hi All,
I'm adding a dropdown control "MyDropdown" to Cell[0] in every Row  in Table "ShiftTable"
The code is 

while (DR.Read()) //DataReader
{
//Create row
TableRow tRow = new TableRow();
ShiftTable.Rows.Add(tRow);

// Create a new cells and add them to the row.
TableCell tCell1 = new TableCell();
tRow.Cells.Add(tCell1);

tCell1.Controls.Add(MyDropdown);

TableCell tCell2 = new TableCell();
tRow.Cells.Add(tCell2);
// ET ...

Go to the complete details ...