Good Day,
Hi
I have a grid i am creating template fields dynamically from code behind and i am adding dropdown dynamically it is being added sucessfully
the gridview is being show problemis when i try to get the dropwdown value from grid from looping it gives me error
Unable to cast object of type 'System.Web.UI.WebControls.GridViewRow' to type 'System.Web.UI.WebControls.GridView'.
i am looping throgh the grid view on a button click hers my code
My class file
/// <summary>
/// Summary description for MyGridViewTemplate
/// </summary>
public class MyGridViewTemplate : ITemplate
{
private DataControlRowType templateType;
private string columnName;
public MyGridViewTemplate(DataControlRowType type, string colname)
{
templateType = type;
columnName = colname;
}
public voi ...
Go to the complete details ...