I
Ian Oldbury
Hi
I need to place a DropDownList within the grid and have it editable when the
grid isn't in edit mode.
I've been able to place the control on the grid and have it working
including the postback.
However the problem that i'm experiencing is that i can't find out which row
the user is on.
I've included a sample of the code that i'm using....
thanks for your help.
ian
-- aspx page
<asp:templatecolumn headertext="Display Order">
<itemtemplate>
<asp:dropdownlist id="ddlDisplayOrder" runat="server"
onselectedindexchanged="ddlDisplayOrder_SelectedIndexChanged"
autopostback="True"></asp:dropdownlist>
</itemtemplate>
</asp:templatecolumn>
-- Code Behind
Public Sub ddlDisplayOrder_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ddlDisplayOrder.SelectedIndexChanged
End Sub
I need to place a DropDownList within the grid and have it editable when the
grid isn't in edit mode.
I've been able to place the control on the grid and have it working
including the postback.
However the problem that i'm experiencing is that i can't find out which row
the user is on.
I've included a sample of the code that i'm using....
thanks for your help.
ian
-- aspx page
<asp:templatecolumn headertext="Display Order">
<itemtemplate>
<asp:dropdownlist id="ddlDisplayOrder" runat="server"
onselectedindexchanged="ddlDisplayOrder_SelectedIndexChanged"
autopostback="True"></asp:dropdownlist>
</itemtemplate>
</asp:templatecolumn>
-- Code Behind
Public Sub ddlDisplayOrder_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ddlDisplayOrder.SelectedIndexChanged
End Sub