Greetings all, I am hoping you can save my crumbling sanity.
I have written a simple Dynamic Data application, displaying a scaffolded table to a GridView. So far so good.
All I would like to do is move the command column, with Edit Delete Insert etc (column(0) to the right most column.
I could do this by writing Custom Pages for each object, but I would like to do this for the generic PageTemplate.
My thought was to create the command column in code and append it to the column collection but I am struggling with this.
I have tried creating a column in Page_Load, GridView_DataBound and GridView_PreRender events, but in each case the columns collection is empty at that point and the new column still ends up on this left.
When is the GridView ColumnsGenerator called? I put a break point in a custom field generator but the call stack was not helpful.
Thanks for your time and sorry if this has come up before, but hours of searching have drawn a blank.