3
Reply

dropdownlist inside gridview

ranjan sahoo

ranjan sahoo

Oct 4 2013 5:44 AM
1k
HIIII
 
I have some problem in dropdownlist inside gridview.

i have designe a dropdownlist inside gridview like
<asp:GridView ID="GridAssessment" runat="server" AutoGenerateColumns="False" BorderStyle="None">

<Columns>
                                                 
                                                  
  <asp:TemplateField HeaderText="SELF-ASSESSEMENT">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="ddlselfassessment" runat="server" onchange="showvalue(this)">
                                                                <asp:ListItem Value="" Text="--Select--"></asp:ListItem>
                                                                <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                                                <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                                                <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                                                <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                                                <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
</TemplateField>
</Columns>
</GridView>
how to fill data inside dropdownlist from dataset?




                                            

Answers (3)