This question is locked. New answers and comments are not allowed.
Hello
I have a GridView that includes static and dynamic columns. When I try to use the filtering on the dynamic columns I get a pop-up unhanded exception message (attached file). All dynamic rows have data inside of type string. This is a sample code
Dim index = 0 For Each oCustomIndex As CustomIndex In oDocument.CustomIndexes If (oRadGridDocumentSearchResults.Columns(oCustomIndex.Name) Is Nothing) Then Dim oGridViewColumn As New GridViewDataColumn() oGridViewColumn.Header = oCustomIndex.Name.Replace("_", " ") oGridViewColumn.UniqueName = oCustomIndex.Name oGridViewColumn.IsFilterable = True oGridViewColumn.IsGroupable = True oGridViewColumn.IsReadOnly = True oGridViewColumn.IsSortable = True oGridViewColumn.DataType = GetType(String) oGridViewColumn.DataMemberBinding = New Binding(".") oGridViewColumn.DataMemberBinding.Mode = BindingMode.OneWay oGridViewColumn.DataMemberBinding.Converter = New CustomIndexesToStringConverter() oGridViewColumn.DataMemberBinding.ConverterParameter = index oCustomColumnCollection.Add(oGridViewColumn) oRadGridDocumentSearchResults.Columns.Add(oGridViewColumn) index += 1 End If NextPublic Class CustomIndexesToStringConverter Implements IValueConverter Public Function Convert(ByVal value As Object, ByVal targetType As System.Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.Convert Try Dim oMVDocument As MVDocument = value Dim oString As String = oMVDocument.CustomIndexes(parameter).Value Return oString Catch ex As Exception ReportError(ex.Message, GetCurrentMethod.Name) End Try Return Nothing End Function Public Function ConvertBack(ByVal value As Object, ByVal targetType As System.Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.ConvertBack
Return Nothing End Function End Class
Thanks