I am creating a interface consist of grid view which consist of a lot of text boxes which i am creating dynamically on the basis of elements from XML file.
but when i want to save data from that interface it is giving problem to me in that.
i am using code in this while saving is :
foreach (GridViewRow orow in GrdDynamic.Rows)
{
foreach (TableCell cell in orow.Cells)
{
TextBox txtBox = (TextBox)cell.Controls[0];
Response.Write(txtBox.Text);
string strtxc = txtBox.Text;
}
Response.Write("<BR>");
}
But my GrdDynamic.Rows.Count brings me answer =0;
can anyone help me??????????????????????????????????????