I have a RadGridView control on a screen in my WPF application. It holds the results of a search the user can perform. There are two different types of objects that can be in this control; they both implement an interface that the window that holds the RadGridView is aware of.
One of these two types contains an array of a third type of object that I want to display in a Row Details data template, but only if the array isn't empty. The other type does not have any information in it that I want to display in any row details area.
So I need a way to set the Row Details Visibility property for each row in the RadGridView based on its underlying type. I've already added a boolean property called CanDisplayDetails. For the type that I don't want to display any details for, this always returns false. Of the other type, this returns true if the number of rows in an array property is greater than zero.
How do I hook this property up to each row's DisplayRowDetails property?
Tony
One of these two types contains an array of a third type of object that I want to display in a Row Details data template, but only if the array isn't empty. The other type does not have any information in it that I want to display in any row details area.
So I need a way to set the Row Details Visibility property for each row in the RadGridView based on its underlying type. I've already added a boolean property called CanDisplayDetails. For the type that I don't want to display any details for, this always returns false. Of the other type, this returns true if the number of rows in an array property is greater than zero.
How do I hook this property up to each row's DisplayRowDetails property?
Tony