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:
Thank you,MG
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
I tried creating bound fields for the last two columns but i get an error:
Data source field with name 'MyColumn' cannot be found. Please set the DataFieldName property for the field with 'MyColumn' key to correspond to a data field in the data source.
Also, if I make the bound field hidden, would that display it in the grid?