Double click on link button inside datagrid and it will change to a dropdown list
<p>I have a Datagrid which looks as under</p>

<pre><code>&lt;asp:GridView ID="dgTask" runat="server" Width="100%" AutoGenerateColumns="False"&gt;
    &lt;Columns&gt;
        &lt;asp:BoundField DataField="TaskID" HeaderText="TaskID" ItemStyle-Width="1%" /&gt;
        &lt;asp:BoundField DataField="TaskName" HeaderText="Task Name" ItemStyle-HorizontalAlign="left"
            ItemStyle-Width="10%" /&gt;
        &lt;asp:BoundField DataField="PriorityName" HeaderText="Priority" ItemStyle-HorizontalAlign="center"
            ItemStyle-Width="10%" /&gt;
        &lt;asp:BoundField DataField="StatusName" HeaderText="Status" ItemStyle-HorizontalAlign="center"
            ItemStyle-Width="10%" /&gt;
        &lt;asp:TemplateField HeaderText="Edit Task" ItemStyle-Width="10%"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:LinkButton ID="lnkBtnEdit" runat="Server" Text="Edit" /&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
    &lt;/Columns&gt;
&lt;/asp:GridView&gt;
</code></pre>

<p>As can be figure out that, there is a link button control inside the grid. Our requirement is that, when the user double click on this link button, then for that
row it should change to a dropdown list.</p>

<p>How to do so? Googling does not help much.</p>

<p>Please help</p>

<p><strong>Data Population in grid</strong></p>

<pre><code>public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var records = GetData();
        dgTask.DataSource = records;
        dgTask.DataBind();
    }

    private List&lt;TaskEntity&gt; GetData()
    {
        List&lt;TaskEntity&gt; lstTaskEntity = new List&lt;TaskEntity&gt;();
        Enumerable.Range(1, 10)
            .ToList()
            .ForEach(
                        i =&gt; lstTaskEntity.Add(new TaskEntity
                        {
                            TaskID = i
                         ,
                            TaskName = string.Concat("TaskName", i)
                         ,
                            PriorityName = string.Concat("PriorityName", i)
                         ,
                            StatusName = string.Concat("StatusName", i)
                        }));
        return lstTaskEntity;
    }
}

public class TaskEntity
{
    public int TaskID { get; set; }
    public string TaskName { get; set; }  
    public string PriorityName { get; set; }  
    public string StatusName { get; set; }   
}
</code></pre>

<p>Thanks in advance</p>
