ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Set DropDownList Selected Value on GridView Edit Button Click using C# and VB.Net in ASP.Net<p>Hi <a class="username" rel="akhter"> akhter</a>,</p> <p>For selecting the dropdownlist value you need to use FindByValue and set the selected value true.</p> <p>For more details refer below article.</p> <h1 class="header"><a title="Populate DropDownList with Selected Value in EditItemTemplate of GridView in ASP.Net'a" href="https://www.aspsnippets.com/Articles/Populate-DropDownList-with-Selected-Value-in-EditItemTemplate-of-GridView-in-ASPNet.aspx">Populate DropDownList with Selected Value in EditItemTemplate of GridView in ASP.Net</a></h1> <p>&nbsp;</p> <blockquote><cite>akhter says:</cite> <pre><code class="csharp spaces"></code><code class="csharp plain">ddlSecID.SelectedItem.Value = row.Cells[3].Text;</code></pre> </blockquote> <p>&nbsp;Change with below code.</p> <pre class="brush: csharp">ddlSecID.Items.FindByValue(row.Cells[3].Text).Selected = true;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/184824/Set-DropDownList-Selected-Value-on-GridView-Edit-Button-Click-using-C-and-VBNet-in-ASPNet/https://www.aspforums.net:443/Threads/184824/Set-DropDownList-Selected-Value-on-GridView-Edit-Button-Click-using-C-and-VBNet-in-ASPNet/Thu, 05 Sep 2019 04:14:34 GMT