D
DC
Newbie's question about .NET datagrid
If I use:
<asp:EditCommandColumn></asp:EditCommandColumn>
When I edit a row, it will automatically show Update and Cancel Link.
But when I use:
<asp:Button id="btnEdit" runat="server" Text="Edit" CommandName="Edit"
CssClass="clickable"Width="50px" />
When I edit a row, the Update/Cancel links don't show up.
Can someone help me?
This is my code:
<asp:TemplateColumn HeaderText="Action" ItemStyle-Width="120px">
<ItemTemplate>
<asp:Button id="btnEdit" runat="server" Text="Edit"
CommandName="Edit" CssClass="clickable"
Width="50px" />
<asp:Button id="btnDelete" runat="server" Text="Delete"
CommandName="Delete" CssClass="clickable"
Width="50px" />
</ItemTemplate>
</asp:TemplateColumn>
- DC
If I use:
<asp:EditCommandColumn></asp:EditCommandColumn>
When I edit a row, it will automatically show Update and Cancel Link.
But when I use:
<asp:Button id="btnEdit" runat="server" Text="Edit" CommandName="Edit"
CssClass="clickable"Width="50px" />
When I edit a row, the Update/Cancel links don't show up.
Can someone help me?
This is my code:
<asp:TemplateColumn HeaderText="Action" ItemStyle-Width="120px">
<ItemTemplate>
<asp:Button id="btnEdit" runat="server" Text="Edit"
CommandName="Edit" CssClass="clickable"
Width="50px" />
<asp:Button id="btnDelete" runat="server" Text="Delete"
CommandName="Delete" CssClass="clickable"
Width="50px" />
</ItemTemplate>
</asp:TemplateColumn>
- DC