public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
 {
     this.BindingTarget = GenericDateTimePicker.SelectedDateTimeProperty;
     var picker = new GenericDateTimePicker();
     picker.SetBinding(this.BindingTarget, this.CreateValueBinding());
     return picker;
 }
        public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
        {
            this.BindingTarget = GenericDateTimePicker.SelectedDateTimeProperty;
            var picker = new GenericDateTimePicker();

            picker.SetBinding(this.BindingTarget, this.CreateValueBinding());
            return(picker);
        }