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
1775
Hide calendar icon in DateColumn
posted

Hello!

I use a DateColumn that is read only. I would like to remove the calendar icon because it is not necessary. Tell me how to implement it?

I know that the problem can be solved by setting the TextColumn, but it is interesting to use the DateColumn.

Thanks in advance.


  • 6759
    Offline posted

    Hi Sergey,

    DateColumn uses DatePicker control from MS sdk as an editor. What you can do is to create a style in which you need to re-template the DatePicker control so the calendar button has its Visibility property set to collapsed. After creating the style you should set it to EditorStyle property of DateColumn.

    Hope this helps,