In one of our scenario, we want to bind the grid using Business objects based on CSLA concept. Here we are facing two problems.
#1. The business object uses OnNotifyPropetyChangedEvent() on every property setter methods. In such case, how I can get rid of the child bands appearing beneath the data row.? Also, If I comment the call to OnNotifyPropertyChanged, then the bands are disappearing. My requirement is to retain those validation rules of the business object along with the grid.
#2. While binding the business object, the parent class properties are also shown in the grid, which is not required. Is there any way, this can be ignored at the time of data binding?
Appreciate your inputs.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
Our UltraGrid will display the hierarchy of the object data is bound to the DataSource
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Bind_WinGrid_to_a_Hierarchical_Data_Source_CLR2.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Binding_to_Program_Generated_Hierarchical_Data.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_IList_and_IBindingList.html
If you are seeing multiple bands than most probably you are having a hierarchy object or just a self-referencing one. You could restrict the UltraGrid to show just a single band by setting “MaxBandDepth” property to 1.
If you want to hide some property (field) from UltraGrid , you should set its Browsable attribute to false ([Browsable(false)]) of the desired properties from your class.
Please let me know if you have any further questions.