//////////////////////HTML
/////////////CS
<asp:GridView runat="server"
ID="GV_PersonalAttributes"
AutoGenerateColumns="true"
OnRowDataBound="GV_PersonalAttributes_RowCreated">
<Columns>
<asp:TemplateField HeaderText="Attributes">
<ItemTemplate>
<asp:LinkButton runat="server"
ID="lbtn_EditObjective" Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
/////////////CS
protected void
GV_PersonalAttributes_RowCreated(object
sender, GridViewRowEventArgs e)
{
TableCell cell = e.Row.Cells[0];
e.Row.Cells.RemoveAt(0);
e.Row.Cells.Add(cell);
}
No comments:
Post a Comment