P
Paul
Hi I have a generic list of data
list <type> listcategory;
listcategory = new list <type>;
I also have a dropdown box that I have put into a template column of a
gridview.
I was able to populate the dropdown box ok when it was outside of the gridview
for (int i = 0; i <= listcategory.Count - 1; i++)
{
ddl.Items.Add(listcategory.Description);
}
Now that the control is in the gridview, ddl is not recognized.
I tried the following event but it does not seem to be reaching it.
protected void gridview_RowDataBound(object sender, DataGridItemEventArgs e)
{
;
}
I also tried the template edit from the gridview properties but could not
see how to bind the dropdown box to the items listcategory.Description.
Thanks.
list <type> listcategory;
listcategory = new list <type>;
I also have a dropdown box that I have put into a template column of a
gridview.
I was able to populate the dropdown box ok when it was outside of the gridview
for (int i = 0; i <= listcategory.Count - 1; i++)
{
ddl.Items.Add(listcategory.Description);
}
Now that the control is in the gridview, ddl is not recognized.
I tried the following event but it does not seem to be reaching it.
protected void gridview_RowDataBound(object sender, DataGridItemEventArgs e)
{
;
}
I also tried the template edit from the gridview properties but could not
see how to bind the dropdown box to the items listcategory.Description.
Thanks.