Hey all!
Now, clearly this is my problem and not one with the grid however I am just not seeing how I am going wrong. Given the following XAML...
And the following code to fill it...
If you build the project (the link is below) and then try to use the combo box a crash is instant. What a I missing?
http://drop.io/hidden/wddviyal73bufj/asset/Y29tYm9ib3hlcnJvci16aXA%253D
Ken
Now, clearly this is my problem and not one with the grid however I am just not seeing how I am going wrong. Given the following XAML...
| <telerik:RadGridView Name="radGridView1" AutoGenerateColumns="False" UseAlternateRowStyle="True"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewComboBoxColumn UniqueName="Active" DataMemberBinding="{Binding IsActive}" SelectedValueMemberPath="Value" DisplayMemberPath="Title" /> |
| <telerik:GridViewDataColumn UniqueName="User" DataMemberBinding="{Binding Name}" /> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |
And the following code to fill it...
| public Window1() |
| { |
| InitializeComponent(); |
| var activeflaglist = new List<ActiveFlag>(); |
| activeflaglist.Add( new ActiveFlag{ Title = "Yes", Value = "Y" } ); |
| activeflaglist.Add( new ActiveFlag{ Title = "No", Value = "N" } ); |
| var userlist = new List<User>(); |
| userlist.Add( new User{ IsActive = "Y", Name = "Bob StartsActive" } ); |
| userlist.Add( new User{ IsActive = "N", Name = "Fred StartsInActive" } ); |
| userlist.Add( new User{ IsActive = "Y", Name = "John StartsActive" } ); |
| userlist.Add( new User{ IsActive = "Y", Name = "Alice StartsActive" } ); |
| userlist.Add( new User{ IsActive = "N", Name = "Janet StartsInActive" } ); |
| var activeColumn = (GridViewComboBoxColumn)radGridView1.Columns["Active"]; |
| activeColumn.ItemsSource = activeflaglist; |
| radGridView1.ItemsSource = userlist; |
| } |
If you build the project (the link is below) and then try to use the combo box a crash is instant. What a I missing?
http://drop.io/hidden/wddviyal73bufj/asset/Y29tYm9ib3hlcnJvci16aXA%253D
Ken