In our RadGridView, we have a RowDetailsTemplate which we only wish to show if the bound property "Messages" has a value. The DataTemplate looks like this:To hide the messages TextBox when there are no messages, we use a converter called visibleWhenNonEmptyConverter, which is defined as follows:
This works reasonably well, except we need the row details to be completely hidden, but it is still several pixels high and has a blue border around it. The grid has its GridLinesVisibility property set to Vertical, and the row details are causing horizontal lines to be visible.The attached screen shot shows this problem - the first row has a Messages property set, but the other 3 rows have Messages set to null.
Is there a better way to implement this? The Messages property gets updated in the background and it implements INotifyPropertyChanged, so when it changes, the row details would need to become visible again.