Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
730
Template Field question
posted

Hello,

I created a webdatagrid that I bind to a contract collection from a wcf service. The grid has 5 columns. I created two extra template field columns that allow the user to input data and one of these columns is a dropdown with 3 items in it.

The issue I'm having is the grid loads fine and the bound field with the template fields are displayed correctly. What's not working is the editing of the Template Field columns. A user can only edit the last two columns. I setup the providers but nothing happens when I double click on the both cells.

The questions:

  1. How can I accomplish this without having to to change the WCF contract to include the columns as properties then convert the template fields to a bound field?
  2. Is there another way to accomplish this that I may have overlooked?

 

Thank you,
MG

Parents
  • 33839
    Suggested Answer
    posted

    Hi MG,

    If you have actual TemplateDataFields as the extra columns, these are not editable.  They are not actually bound to any data, so cannot be edited.  You may need to add hidden bound fields to carry new values back and forth or possibly change your WCF contract.  I'm not sure of your particular situation just from reading.  Let us know if you need further help.

    regards,

    David Young 

Reply Children