protected override FieldPropertyDescriptor[] GetCustomBindablePropertyDescriptors(){
return new FieldPropertyDescriptor[]
{
new ReflectionPropertyDescriptor("ClientAccountName", typeof(Companies)),
new ReflectionPropertyDescriptor("GroupName", typeof(Companies))
};
}
I 've written the code necessary for the extended properties. The problem is that When we does not select any property (predefined or exteneded) with our query. Business object's table contains only selected columns. Business object is bound to a grid through BBS. Business object contains all the property definitions but table contains only selected ones. This is the central of the problem. After selecting a record on the grid, When we press a button, an exception is thrown. This exception is catched by the InvalidRowException event of the Devexpress Grid. Internally, there is an access to the properties of the business object that is not selected to be shown on the grid. We don't select them because there is no need to show.
This is the my case in detail.