Hi.

I have this UpdatePanel with som boundfield content. In this panel, there is an edit link, which will edit the content. It works fine.

Now I want to make all the boundfields clickable as a link, so they act as the edit button. In that way, I dont have to click the edit button, but can click anywhere in the corresponding row to edit the content.

<asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>            
<asp:GridView ID="gvTasks" runat="server" OnRowCreated="gvTasks_RowCreated" DataSourceID="odsTaskList"
GridLines="None" AutoGenerateColumns="false" CssClass="TaskGridView"
OnSelectedIndexChanged="GvTasks_SelectedIndexChanged" DataKeyNames="ID">
<Columns>
                
                <asp:BoundField DataField="Headline" HeaderText="headline">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>

                <asp:BoundField DataField="Content" HeaderText="Content">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>

                <ItemTemplate>
			<asp:LinkButton ID="btnViewDetails" runat="server" Text="Edit" CommandName="Select" />
		</ItemTemplate>
		</asp:TemplateField>	

                <asp:TemplateField>
		<ItemTemplate>
                        <asp:LinkButton id="removeButton" Text="Fjern" CommandArgument='<%# Eval( "id" ) %>' OnCommand="removeButton_Click" runat="server"/>
                </ItemTemplate>
		</asp:TemplateField>
                    			        
</Columns>					
                </asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>

Hope you can help!
thanks alot! :)

I found out otherwise.

The solution:

<asp:TemplateField HeaderText="Content">
<ItemTemplate>
<asp:LinkButton ID="btnContent" runat="server" CommandName="Select" ><%# Eval("Content")%></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>