I have inserted textbox inside GridViewBandColumn using InstantiateIn method.Now on click of save button, I have to fetch the value from the textbox.
How do I fetch the value from gridbandcolumn on click of save button
GridViewBandColumn Total = new GridViewBandColumn();
Total.Caption =
Convert.ToString(z.Item3);
Total.HeaderTemplate =
new TotalQuantity(Total.Caption);
Total.Name =
"TotalQuantity";
public
class TotalQuantity : ITemplate
{private string qty;
private static int count = 0;
private int id;
public TotalQuantity(string y)
{
this.qty = y;
this.id= ++count;
}
public void InstantiateIn(Control container)
{
ASPxTextBox txtTotal = new ASPxTextBox();
txtTotal.ID =
"txtTotal"+id;
GridViewHeaderTemplateContainer gridContainer = (GridViewHeaderTemplateContainer)container;
txtTotal.Text = qty
txtTotal.BackColor =
Color.Transparent;
container.Controls.Add(txtTotal);
}
}