New question, my dropdown list will not load with the data. I am setting
the object datasouce with the below code howver, it isn't working (I debuged
though it and it is being called correctly).
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ObjectDataSource ds =
(ObjectDataSource)e.Row.FindControl("ObjectDataSou rce2");
ds.SelectParameters["categoryID"].DefaultValue =
GridView1.DataKeys[e.Row.DataItemIndex].Value.ToString();
}
}
"MikeB" <m@nospam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello All,
I know this has to be something simple but I have having a hard time
finding examples. I need to add a dynamic listbox to a gridview.
For example, my grid view displays categories and then in each row/
category I have a list box that displays items in the category.
Can anyone give any pointers or examples?