I am attempting to use a DataGridPickerColumn. I am able to get my source list to show up and also have it bind to my property, but whenever I use the ItemDisplayBindingPath, the app is crashing with a null reference exception. Whenever I take out ItemDisplayBindingPath, I do not get the exception. My ProductModel class and the XAML I am using is below:
public
class
ProductModel
{
public
int
Id {
get
;
set
; }
public
string
Name {
get
;
set
; }
public
string
Units {
get
;
set
; }
}
<
tkDataGrid:DataGridPickerColumn
ItemsSource
=
"{Binding BindingContext.Data.ProductModels, Source={x:Reference schedulePage} }"
ItemDisplayBindingPath
=
"Name"
PropertyName
=
"Product"
HeaderText
=
"Product"
/>