This question is locked. New answers and comments are not allowed.
Hi
I am using combobox in GridView as shown in the below code. I have used Code Behind Properties to bind ItemsSource of the combobox. Even though, the code behind property is getting the list of values, but the combobox is not getting populated on UI. Please let me know what would be the mistake here. I am using EF4 and WCF Ria Services. The data I am displaying in the combo box comes from teh database and gets populated into the respective container in the domain context.
Also, if i place the same combobox outside the datagrid, the combobox is getting populated without any issue.
Please let me know what should be done here.
Thanks in advance
Ravindra
I am using combobox in GridView as shown in the below code. I have used Code Behind Properties to bind ItemsSource of the combobox. Even though, the code behind property is getting the list of values, but the combobox is not getting populated on UI. Please let me know what would be the mistake here. I am using EF4 and WCF Ria Services. The data I am displaying in the combo box comes from teh database and gets populated into the respective container in the domain context.
Also, if i place the same combobox outside the datagrid, the combobox is getting populated without any issue.
Please let me know what should be done here.
Thanks in advance
Ravindra
<bases:BaseChildWindow xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="Dhh.Security.ChildWindows.AddNewUserChildWindow" xmlns:bases="clr-namespace:Dhh.Security.Views.Bases" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:windControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" Width="Auto" Height="Auto" Title="Add New User" x:Name="childWindow"> <Grid x:Name="LayoutRoot" DataContext="{Binding ElementName=childWindow, Path=NewUser}"> <telerik:RadGridView ItemsSource="{Binding UserDomainAccounts}" AutoGenerateColumns="False" SelectedItem="{Binding SelectedUserDomainAccount, ElementName=childWindow, Mode=TwoWay}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="DomainName" DataMemberBinding="{Binding DomainName, Mode=TwoWay}"/> <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name, Mode=TwoWay}"/> <telerik:GridViewComboBoxColumn Header="Account Policy" ItemsSourceBinding="{Binding ElementName=childWindow, Path=Context.tblAccountPolicies}" DataMemberBinding="{Binding tblAccountPolicy, Mode=TwoWay}" DisplayMemberPath="Name"/> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid></bases:BaseChildWindow>