or
In order to get the customer type name to show up (instead of the customer type id) we need to bind the combobox to the full set of customer types. But when the user adds a new one, they cannot have the System Customer as an option in the list.
I am filtering out the items that we don't want and rebinding it. But the new list is ignored and the full list is populated.
Any tips?
My code is below:
Private Sub CustomerGridView_CellBeginEdit(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles CustomerGridView.CellBeginEdit ' The list of types available for selection is different from the list that is ' bound for display, so handle this here. Dim DropDownListEditor As RadDropDownListEditor = TryCast(Me.CustomerGridView.ActiveEditor, RadDropDownListEditor) If DropDownListEditor IsNot Nothing Then If (CustomerGridView.Columns(e.ColumnIndex).Name = "Type") Then Dim editorElement As RadDropDownListEditorElement = CType(DropDownListEditor.EditorElement, RadDropDownListEditorElement) Dim filteredList = OriginalList. Where(Function(d) d.IsSystem = false) editorElement.DataSource = filteredList.ToList End If End If End Subhi,
i have a problem in column header if i set field name contain "." or multi "_" did not display any data
please replay as soon as possible