when i dynamically added textbox column i get the code for that to create new class.
public class GridViewTemplate : ITemplate
{
private DataControlRowType templateType;
private string columnName;
string colnmabeii;
public GridViewTemplate(DataControlRowType type, string colname)
{
templateType = type;
columnName = colname;
}
void ITemplate.InstantiateIn(System.Web.UI.Control container)
{
switch (templateType)
{
case DataControlRowType.DataRow:
TextBox t = new TextBox();
t.ID = columnName;
t.Columns = 4;
t.AutoPostBack = true;
t.EnableViewState = true;
t.TextChanged += new EventHandler(method);
container.Controls.Add(t);
break;
default:
break;
}
}
}
but i cant fire method textchanged event in page class of this dynamically added textbox
...
Go to the complete details ...