J
John E.
I have a datatable that I am binding to a C# ASP.NET 1.1 web page. I also
want to put an "Edit" column on the datagrid. However, whenever I use the
following code, it puts the Edit column on the left. I cannot figure out
how to get it to the right, as there is no DataGridTableStyle for ASP as
there is for an application.
I am doing the following on page load: (where dgItem is my datagrid):
EditCommandColumn EditColumn = new EditCommandColumn();
EditColumn.ButtonType = ButtonColumnType.LinkButton;
EditColumn.CancelText = "Cancel";
EditColumn.EditText = "Edit";
EditColumn.HeaderText = "Edit";
EditColumn.UpdateText = "Save";
dgItem.DataSource = ReturnsPopulatedDataTable();
dgItem.Columns.AddAt(1, EditColumn);
dgItem.DataBind();
The edit column keeps showing up on the far left of the grid. Any ideas how
to get it to be added to the right side of the DataTable, instead?
Any help appreciated.
Thanks,
-John
want to put an "Edit" column on the datagrid. However, whenever I use the
following code, it puts the Edit column on the left. I cannot figure out
how to get it to the right, as there is no DataGridTableStyle for ASP as
there is for an application.
I am doing the following on page load: (where dgItem is my datagrid):
EditCommandColumn EditColumn = new EditCommandColumn();
EditColumn.ButtonType = ButtonColumnType.LinkButton;
EditColumn.CancelText = "Cancel";
EditColumn.EditText = "Edit";
EditColumn.HeaderText = "Edit";
EditColumn.UpdateText = "Save";
dgItem.DataSource = ReturnsPopulatedDataTable();
dgItem.Columns.AddAt(1, EditColumn);
dgItem.DataBind();
The edit column keeps showing up on the far left of the grid. Any ideas how
to get it to be added to the right side of the DataTable, instead?
Any help appreciated.
Thanks,
-John