or



private void rgcSoil_CellEditorInitialized(object sender, GridViewCellEventArgs e) { if (e.Column.Name != "colSorM") return; RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; if (editor != null) { var ee = (RadDropDownListEditorElement)((RadDropDownListEditor)this.rgcSoil.ActiveEditor).EditorElement; ee.BeginEdit(); ee.DataSource = new String[] {"", "S", "M" }; SoilType st = (SoilType)e.Row.Tag; ee.Value = st.StandardOrModified; ee.EndEdit(); } }

private void listView_Result_ItemDrag(object sender, ItemDragEventArgs e) { lblDragID.Text = listView_Result.SelectedItems[0].Tag.ToString(); listView_Result.DoDragDrop(listView_Result.SelectedItems, DragDropEffects.Move); } private void TreeHome_DragDrop(object sender, DragEventArgs e) { try { string x = lblDragID.Text; Point p = System.Windows.Forms.Control.MousePosition; // Expand node if the mouse is over a one, and get the node id if the drop is finished (?) MessageBox.Show(lblDragID.Text); lblDragID.Text = "0"; } catch (Exception ex) { MessageBox.Show(ex.Message); } }