I need help trying to figure out how to autofill data from sql inside gridview into dropdownlist every time there is data in gridview?
I have muiltiple tamplate fields:
Java
asp:TemplateField HeaderText="Hire" ItemStyle-Width="50px"> ItemTemplate> asp:DropDownList ID="ddlGridListHire" runat="server" AppendDataBoundItems="true" >asp:DropDownList> ItemTemplate> asp:TemplateField> asp:TemplateField HeaderText="Status" ItemStyle-Width="50px"> ItemTemplate> asp:DropDownList ID="ddlGridListStatus" runat="server" AppendDataBoundItems="true" >asp:DropDownList> ItemTemplate> asp:TemplateField> asp:TemplateField HeaderText="Background Check" ItemStyle-Width="50px"> ItemTemplate> asp:DropDownList ID="ddlGridListBackgroundCheck" runat="server" AppendDataBoundItems="true" >asp:DropDownList> ItemTemplate> asp:TemplateField>and .cs file is where im struggle. i believe i have to do something inside rowbound?
Code
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)Code
{Code
}Thank yOu

Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 14, 2017, 5:18 AM EDT
Kev Patil19 reputationPosted Aug 14, 2017, 5:25 AM EDT