create new property in datagrid column collection

2 posts, 0 answers
  1. babu
    babu avatar
    1 posts
    Member since:
    Mar 2016

    Posted 08 Mar Link to this post

    hai

     

    I am creating a user control with datagrid and i created a property called DataGridNumeric column and I want to add this property for my control.

    Please he me hos to do this.

     

    I use this code for creating column collection

     public Collection<DataGridColumn> field = new Collection<DataGridColumn>();
            [Category("Data")]
            [Description("New Column Creation")]
            [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
            public Collection<DataGridColumn> Columns
            {
                get { return field; }
            }

     

    Thanks.

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 11 Mar Link to this post

    Hello Babu,

    Could you please specify the controls you're using in your user control? You've set RadPropertyGrid as the category of the thread, but you do not seem to mention it. Are you using any other Telerik controls?

    Please give more information about your exact setup so that I can further assist you.

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top