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
895
How can I add a button to a unbound column
posted

I've created a unbound column in my WebHierarchicalDataGrid.

Now I'd like to show a button in this column and perform an action in code when the user clicks the button.

I get the impression I need to set the type on the column?

Like... WebHierarchicalDataGrid1.Bands[1].Columns[0].Type = ???

How do I accomplish this?

Thanks.

Parents
No Data
Reply
  • 33839
    Verified Answer
    posted

    Hi demoend,
    The Type property is the actual type of bound data (like string, int, etc).  If you want a button, I would suggest adding a TemplateDataField with an ItemTemplate that has a button in it.  Then you could handle the client click of the button or the server side or handle an ItemCommand.

    regards,
    David Young 

Children