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
479
Custom TemplateDataField and ITemplate - How to?
posted

I have attached a sample project trying top get the sample code from the Item Template help here working.

I'm using GrpoupBy against a flat entity object. I can not get the control added in the CustomTemplate to appear.. What am I going wrong?

Your help and pointers what am I doing wrong is greatly apreciated.

Thanks in advance for having a look.

Emil

 

GridTemplateSample.zip
Parents
  • 33839
    Verified Answer
    posted

    Hi Emil,

    I'm a little confused.  What template should appear?  Approve/Remove or Edit?  If you want the edit one to appear, you need to set the template in the GridView column.  Once the grid view is created, it no longer copies properties set on its band, the WHDG.

    So do this.

    TemplateDataField templateColumn = (TemplateDataField)this.WebHierarchicalDataGrid1.GridView.Columns["action"];

    And you'll get Edit to appear.

    regards,

    David Young

Reply Children