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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid: Browsable(false) is ignored

Thread ID:

Created:

Updated:

Platform:

Replies:

150489 Jan 9,2020 12:55 AM UTC Jan 10,2020 05:36 AM UTC WinForms 3
loading
Tags: SfDataGrid
Tomas
Asked On January 9, 2020 12:55 AM UTC

Why does Sfdatagrid ignores Browsable(false) property attribute ? It still shows that property in the grid.

Saravanan Ayyanar [Syncfusion]
Replied On January 9, 2020 02:22 PM UTC

Hi Tomas, 
 
Thank you for using Syncfusion controls. 
 
By default, if you set  Browsable as false for any property, it did not show in the property window. If you want to skip the columns auto-generation for a particular property, you can use the Autogenerated property or set the Bindable attribute to false. Please refer the below code snippet. 
 
[Display(AutoGenerateField = false, Description = "OrderID field is not generated in UI")] 
 public int OrderID 
 { 
     get 
     { 
         return _orderId; 
     } 
     set 
     { 
         _orderId = value; 
         RaisePropertyChanged("OrderID"); 
     } 
 } 
 
Sample Link: 
 
UG Link: 
 
Please let us know if you require further assistance on this. 
 
Regards, 
Saravanan A 


Tomas
Replied On January 9, 2020 10:16 PM UTC

Thank you it works. Sorry i tried to look in documentation, and in forums but couldnt find answer so i've created this post. I think it will help others in the future too :)

Farjana Parveen Ayubb [Syncfusion]
Replied On January 10, 2020 05:36 AM UTC

Hi Tomas, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon