Y
ylockhead
I have a couple of problems with a datagrid (dgDetail) that is embedded on
another detagrid(dgMaster). On dgDetail, I have a dropdown listbox
(ddlbDecision) that I am trying populate. I put code in
dgDetail_ItemDataBound to populate the listboxt but it's not working.
My first problem is that the event dgDetail_ItemDataBound doens't get fired
automatically when dgDetail.DataBind() is executed. To get around this, I
trigger the event using dgdAddTimeRep_ItemDataBound(sender, e). Shouldn't
this event work automatically?
My second problem is how to reference the listbox ddlbDecision on dgDetail.
I have tried referecing the control using the following code but it doens't
work.
Dim ddlbDecision As System.Web.UI.WebControls.DropDownList =
CType(e.Item.FindControl("ddlbDecision "),
System.Web.UI.WebControls.DropDownList)
How can I reference the control ddlbDecision on the embedded datagrid so I
can populate it??
Thanks for your help.
another detagrid(dgMaster). On dgDetail, I have a dropdown listbox
(ddlbDecision) that I am trying populate. I put code in
dgDetail_ItemDataBound to populate the listboxt but it's not working.
My first problem is that the event dgDetail_ItemDataBound doens't get fired
automatically when dgDetail.DataBind() is executed. To get around this, I
trigger the event using dgdAddTimeRep_ItemDataBound(sender, e). Shouldn't
this event work automatically?
My second problem is how to reference the listbox ddlbDecision on dgDetail.
I have tried referecing the control using the following code but it doens't
work.
Dim ddlbDecision As System.Web.UI.WebControls.DropDownList =
CType(e.Item.FindControl("ddlbDecision "),
System.Web.UI.WebControls.DropDownList)
How can I reference the control ddlbDecision on the embedded datagrid so I
can populate it??
Thanks for your help.