Hi guys..,
basically i follow the example on the Beginning ASP.net on ASP.net server
controls section.
I am trying to do in Place editing.
But when i clicked edit, the label suppose to become a textbox, but that's
not the case.
i have to click twice before the label become textbox to edit.
here is my code...
Public Sub UnitCommentEdit(ByVal source As Object, ByVal etest As
DataGridCommandEventArgs)
UnitComm.EditItemIndex = etest.Item.ItemIndex
loadUnitComment(GuideID, UnitID)
End Sub
<asp:TemplateColumn
HeaderText="Action">
<ItemTemplate>
<asp:LinkButton
CommandName="Delete" Text="Delete" Runat="server"
ID="Linkbutton7"></asp:LinkButton>
<asp:LinkButton
CommandName="Edit" Text="Edit" Runat="server"
ID="Linkbutton9"></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton
CommandName="Cancel" Text="cancel" Runat="server"
ID="Linkbutton5"></asp:LinkButton>
<asp:LinkButton
CommandName="Update" Text="Save" Runat="server"
ID="Linkbutton6"></asp:LinkButton>
</EditItemTemplate>
</asp:TemplateColumn>
any help will be appreciated.
thanks...