سؤال

وأنا استخدم Telerik عرض جدولة كقاعدة بلدي، كما رأينا في <لأ href = "http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it .aspx اتصال "يختلط =" noreferrer نوفولو "> http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it.aspx لذلك أنا نفذت تحميل البيانات من SQL في هذا جدولة. الآن أريد أن تنفيذ السحب والإفلات. لذا، كيف يمكنني الحصول على قيم تعييني في المكان القديم والقيم في مكان جديد على جدولة وما هي أفضل طريقة للقيام بذلك؟ وأود أن استخدام هذه القيم، لتنفيذ التحديث من التمور تعيين في SQL.

هل كانت مفيدة؟

المحلول

        private void OnAppointmentEdited(object sender, AppointmentEditedEventArgs e)
        {

            Appointment eAppo = e.Appointment as Appointment;
            SessionAppointment ses = e.Appointment as SessionAppointment;

            if(eAppo != null && ses != null)
            {
                DateTime dateStart = eAppo.Start; //new datestart
                DateTime dateEnd = eAppo.End;//new dateend
                string id = ses.UniqueId;//id

}
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top