GridViewComboBoxColumn Binding Problem

3 posts, 0 answers
  1. Sagar
    Sagar avatar
    17 posts
    Member since:
    Sep 2010

    Posted 12 Jan 2011 Link to this post

            <riaControls:DomainDataSource x:Key="ddsSkyConditions"
                                              DomainContext="{StaticResource DomainContext}">

                    <riaControls:SortDescriptor PropertyPath="skyconditiondesc"></riaControls:SortDescriptor>


    <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Path= SkyConditionID,Mode=TwoWay}"
                                                        ItemsSourceBinding="{Binding Data,Source={StaticResource ddsSkyConditions}}"
                                                        SelectedValueMemberPath="skyconditionid" />

    If SkyCondtionID=2 then skyconditindesc for id 2 should be selected in combobox but it's not happening.
    I don't understand what's wrong in that?
    (Combobox contains all values of domain source but none is selected.)
  2. Maya
    Maya avatar
    4062 posts

    Posted 13 Jan 2011 Link to this post

    Hello Sagar,

    May you verify that all the properties defined are set correctly - more importantly the one in the DataMemberBinding ? Furthermore, may you take a look at this article to check if the solutions proposed there resolve the issue in your case ?

    Kind regards,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. Sagar
    Sagar avatar
    17 posts
    Member since:
    Sep 2010

    Posted 13 Jan 2011 Link to this post

    Thanks for reply.
    Got my answer.Actually I declared DatameberBinding field i.e SkyConditionID as int and selectedvaluememberpath field i.e skyconditionid which is coming from from database is byte.
    that's why it was not selecting any record.Now it's working nicely.
Back to Top