Last post Jun 01, 2009 10:53 AM by sjnaughton
May 29, 2009 11:45 AM|dcannon|LINK
I would like to move the edit, details, delete links to the right hand side of the table rows.
I saw this post which seemed exactly like the answer. So I went ahead and implemented it as described.
But the GridCommand.ascx file uses Inherits="DynamicTest.GridCommand"
I get this when I run one of the pages.
'ASP.dynamicdata_fieldtemplates_gridcommand_ascx' does not inherit from 'System.Web.DynamicData.IFieldTemplate'.
Can somebody tell me what this is or where I can find it? I thought it would be in Dynamic Data Futures but I got the 7/16 release
which I believe is the latest and can't seem to find it in there.
May 29, 2009 02:28 PM|chintanpshah|LINK
May 29, 2009 03:26 PM|dcannon|LINK
Thank you for the reply. The fields are already showing I just want to move them for the GridView generated in the List.aspx pages dynamically for each table. Apparently the only way to do this is to change the IAutoFieldGenerator to add the command field
at the end. Which I tried to do the only problem was the GridCommand.ascx Field Template inherited from a resource I don't have. Either I need to create it or I need to get a library that has the appropriate class.
Why don't you use <asp:CommandField ShowSelect = "true" ShowDelete = "true" ... />
May 29, 2009 07:48 PM|sjnaughton|LINK
Hi Dcannon, have a look at this thread
http://forums.asp.net/p/1379821/2913829.aspx#2913829 this is a solution that should work for you.
Move Command Column
May 29, 2009 08:06 PM|sjnaughton|LINK
I have a sample based on the above mentioned thread if you like send me an e-mail and I'll send the sample by return.
May 29, 2009 08:28 PM|sjnaughton|LINK
And just to make things easyer here it is on my blog with download:
Move Command Link Column to End Column – Dynamic Data
Jun 01, 2009 10:14 AM|dcannon|LINK
Thank you for the reply. Your last post was what worked for me. The problem I was having is somehow related to the namespace declared in the codebehind preventing the type from being included. I replaced my GridCommand with yours and it works. Thank you
for the help.
Jun 01, 2009 10:53 AM|sjnaughton|LINK
your welcome [:D]