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_RowDa taBound(object sender, GridViewRowEven tArgs e)
{
if (e.Row.RowType == DataControlRowT ype.DataRow)
{
ObjectDataSourc e ds =
(ObjectDataSour ce)e.Row.FindCo ntrol("ObjectDa taSource2");
ds.SelectParame ters["categoryID "].DefaultValue =
GridView1.DataK eys[e.Row.DataItemI ndex].Value.ToString ();
}
}
"MikeB" <m@nospam.comwr ote in message
news:%2******** ********@TK2MSF TNGP04.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?