Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need to add a drop down in every row of webDataGrid, On selected change of this dropdown,
it will pass productID and open a popup to specific operation.


My code
C#
<Columns>
    <ig:BoundDataField Key="ProductID" DataFieldName="ProductID" Header-Text="Product ID" Hidden="true"   >
<Header Text="Product ID"></Header>
     </ig:BoundDataField> 
<ig:TemplateDataField Key="Select">
    <ItemTemplate>
        <asp:DropDownList runat="server" ID="ddlActions">
            <asp:ListItem Value="0" Text="Select" Selected="True"></asp:ListItem>
            <asp:ListItem Value="2" Text="Mark this product"></asp:ListItem>
            <asp:ListItem Value="3" Text="Move to sales"></asp:ListItem>                                       
        </asp:DropDownList>
    </ItemTemplate>
    <Header Text="Select Option">
    </Header>
</ig:TemplateDataField>
</Columns>


Now How I'll add selected change event to dropdown

Thanks
Kumar
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900