This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to add a GridViewComboBoxColumn to my grid and I've got everything set up per all the examples I've seen but I'm still getting a blank grid when I run my project.
Here is my code, can someone point out where I'm going wrong?
<telerik:RadGridView x:Name="grd" Margin="15,5,15,50" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" AutoGenerateColumns="False" IsFilteringAllowed="True"
IsReadOnly="True" CanUserResizeColumns="False" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False"
telerik:StyleManager.Theme="Transparent" AutoExpandGroups="True" >
<telerik:RadGridView.Columns>
<telerik:GridViewComboBoxColumn Width=".10*" Background="#6DFFFFFF" Header="Type" DisplayMemberPath="CAB" SelectedValueMemberPath="CAB" DataMemberBinding="{Binding CAB}" UniqueName="cboType" />
<telerik:GridViewDataColumn Width=".10*" Background="#6DFFFFFF" Header="Model" />
</telerik:RadGridView.Columns>
((GridViewComboBoxColumn)this.grd.Columns["cboType"]).ItemsSource = from a in DATAList
select new DATAList { CAB = a.CAB };
Where DATAList is a class list
Thanks,
Adam
I'm trying to add a GridViewComboBoxColumn to my grid and I've got everything set up per all the examples I've seen but I'm still getting a blank grid when I run my project.
Here is my code, can someone point out where I'm going wrong?
<telerik:RadGridView x:Name="grd" Margin="15,5,15,50" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" AutoGenerateColumns="False" IsFilteringAllowed="True"
IsReadOnly="True" CanUserResizeColumns="False" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False"
telerik:StyleManager.Theme="Transparent" AutoExpandGroups="True" >
<telerik:RadGridView.Columns>
<telerik:GridViewComboBoxColumn Width=".10*" Background="#6DFFFFFF" Header="Type" DisplayMemberPath="CAB" SelectedValueMemberPath="CAB" DataMemberBinding="{Binding CAB}" UniqueName="cboType" />
<telerik:GridViewDataColumn Width=".10*" Background="#6DFFFFFF" Header="Model" />
</telerik:RadGridView.Columns>
((GridViewComboBoxColumn)this.grd.Columns["cboType"]).ItemsSource = from a in DATAList
select new DATAList { CAB = a.CAB };
Where DATAList is a class list
Thanks,
Adam