We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

creating new column property in datagrid column collection

hai

I am creating a user control with datagrid controls. I want to add my new property called  DatagridNumericColumn property to my user control.
Please help me how to do this.

I use this code for creating 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.

1 Reply

SV Srinivasan Vasu Syncfusion Team March 10, 2016 10:10 AM UTC

Hi Babu,
Thanks you for Contacting Syncfusion support.
We are unable to understand your requirement clearly. Could you please let us know whether you are using any CustomColumn of SfDataGrid? Could you please share the details about your exact requirement? It will be helpful for us to analyze further. 
To know more about columns in SfDataGrid, please refer the below links.
Link: http://help.syncfusion.com/wpf/sfdatagrid/column-types
         http://help.syncfusion.com/wpf/sfdatagrid/column-types#custom-column-support
Regards,
Srinivasan




Loader.
Live Chat Icon For mobile
Up arrow icon