I created Dynamic columns (textBox) in RadGrid on a Click Event. How do I find those Controls on another Click Event.
for (int i = 0; i < objISTUserDetailsObjectList.Count; i++)
{
tempCol = new GridTemplateColumn();
tempCol.ItemTemplate = new DynamicTemplateCoulmn("txtQuantity" + i, "numericTextBox");
tempCol.UniqueName = "Users" + i;
tempCol.HeaderStyle.HorizontalAlign = HorizontalAlign.Right;
tempCol.ItemStyle.HorizontalAlign = HorizontalAlign.Right;
tempCol.FooterStyle.HorizontalAlign = HorizontalAlign.Right;
gvwISTProduct.MasterTableView.Columns.Add(tempCol);
}
我无法在另一个Click事件中找到“txtxQuantity”,尽管我在Grids ItemDataBound事件中找到它。 在此先感谢。