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 事件中找到了它。提前致谢。