Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1140
XamGrid
posted

I have 4 columns in my Grid. And I am trying to set the ItemSource for the ComboBoxColumn so that it populates The Grid selection on dropdown, yet fills out the current value.

I don't have this workig yet. I also had a post about this before, but unable to find it on the forums because there is no "my posts" selection.

Here is the Xaml:

 

<riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:Globe, CreateList=true}" Height="0" LoadedData="globeDomainDataSource_LoadedData" Name="globeDomainDataSource" QueryName="GetGlobesQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:UserDS1 />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:Lang, CreateList=true}" Height="0" LoadedData="langDomainDataSource_LoadedData" Name="langDomainDataSource" QueryName="GetLangsQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:UserDS1 />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <ig:XamGrid Height="182" HorizontalAlignment="Left" ItemsSource="{Binding ElementName=vUserDomainDataSource, Path=Data, Mode=TwoWay}" Margin="12,42,0,0" Name="vUserXamGrid" VerticalAlignment="Top" Width="640" AutoGenerateColumns="False">
            <ig:XamGrid.Columns>
                <ig:TextColumn Key="UserName" HeaderText="User Name" />
                <ig:TextColumn Key="Password" HeaderText="Password" />
                <ig:ComboBoxColumn Key="Language" ItemsSource="{Binding ElementName=langDomainDataSource, Path=Data, Mode=TwoWay}" SelectedValuePath="LID" DisplayMemberPath="Language">
                    
                </ig:ComboBoxColumn>
                <ig:ComboBoxColumn Key="Globe" ItemsSource="{Binding ElementName=globeDomainDataSource, Path=Data, Mode=TwoWay}" SelectedValuePath="GID" DisplayMemberPath="Globe1" HeaderText="Global Instance">

                </ig:ComboBoxColumn>

            </ig:XamGrid.Columns>
        </ig:XamGrid>

<riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:vUser, CreateList=true}" Height="0" LoadedData="vUserDomainDataSource_LoadedData" Name="vUserDomainDataSource" QueryName="GetVUsersQuery" Width="0">
            <riaControls:DomainDataSource.DomainContext>
                <my1:UserDS1 />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
Parents Reply Children
No Data