/// <summary>
        /// Test drag and drop with the data list
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">The event arguments</param>
        private void dlList_BeginDrag(object sender, DataListBeginDragEventArgs e)
        {
            // Commit any pending changes before the drag operation begins
            dlList.CommitChanges();

            this.DoDragDrop(e, DragDropEffects.Copy | DragDropEffects.Move);
        }
Esempio n. 2
0
        /// <summary>
        /// This raises the <see cref="BeginDrag"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnBeginDrag(DataListBeginDragEventArgs e)
        {
            var handler = BeginDrag;

            if(handler != null)
                handler(this, e);
        }