Reputation: 878
After I load data into Dev Gridview
, I add a Delete Button
:
public void loadgrid()
{
....
gv.DataBind();
GridViewCommandColumn d = new GridViewCommandColumn();
d.DeleteButton.Text = Delete;
d.DeleteButton.Visible = true;
d.Caption = " ";
gv.Columns.Add(d);
}
But the Column of Delete Button
is not in the last of gridview (it is in the left of last
data column).
I really dont know why, I just think when I added, the command column
is auto added in the last. Am I wrong???
help!!!
Upvotes: 0
Views: 2627