GridViewComboBoxColumn is blank after lost focus

3 posts, 0 answers
  1. Matthew
    Matthew avatar
    6 posts
    Member since:
    Aug 2013

    Posted 27 Oct Link to this post

    Dear Telerik,

    I am having the same problem as in this post:

    however, I believe that I have set all values required:

     <telerik:RadGridView Name="PFGrid" AutoGenerateColumns="False" Height="228" ScrollMode="RealTime" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto"
                            <telerik:GridViewComboBoxColumn Header="Quote Section" UniqueName="MaterialType" Width="100" IsFilterable="False" 
                                                            IsGroupable="False" IsReorderable="False" IsSortable="False" 
                                                            DataMemberBinding="{Binding MATERIALTYPE_UID}"
                                                            ShowDistinctFilters="False" TextWrapping="Wrap">


    materialtypes is an array of my business object and is set on UserControl Loaded using my API calls:

    materialtypes = MainWindow.dataclient.GetMATERIAL_TYPE(new MATERIAL_TYPE(), " ORDER BY MATERIALTYPE_NAME ASC ");

    PFGrid.ItemsSource is also set on UserControl loaded:
    PFGrid.ItemsSource = formulas;

    GridViewComboBoxColumn ItemsSource property is set on Grid Loaded event:
    ((GridViewComboBoxColumn)this.PFGrid.Columns[0]).ItemsSource = materialtypes;


    Any help would be appreciated.


  2. Matthew
    Matthew avatar
    6 posts
    Member since:
    Aug 2013

    Posted 27 Oct Link to this post

    My apologies,

    I have found my error as described in this post:

    my error was binding the combobox to a property of the business object instead of binding the combobox to a property of the Grid's itemssource.


  3. UI for WPF is Visual Studio 2017 Ready
  4. Stefan Nenchev
    Stefan Nenchev avatar
    280 posts

    Posted 28 Oct Link to this post

    Hi Matthew,

    I am glad to see that you have managed to resolve your issue. Thank you for sharing the solution as it might help other customers in the same situation.

    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top