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>
Hello faxjazz,
I have been looking into your issue and I am sending you an isolated sample application(XamGridWithComboBoxColumn.zip) that shows how you can bind a ‘ComboBoxColumn’ to data in order to be able to select on dropdown.
If you have any other questions, feel free to ask.
I don't mean to be difficult. However I just started with SL and am using SL5.
Your sample doesn't compile because the references for InfragisticsSL4 can't be found.
I am not sure the best way to update yet. I have the new references attached. however getting some errors still.
Hello foxjazz,
I am sending you my application in Silverlight5 version.
well the sample works, but it's not what I had in mind.
I have an ItemSource to a domainService list of products.
I don't think the domainService is a static resource.
Do I need to create a static resource and populate it on page_load via the DomainDataSource?
Hello,
I am just checking if you require any further assistance on the matter.