Home Forums WinForms controls Xceed Grid for WinForms dragging and dropping between grids Reply To: dragging and dropping between grids

User (Old forums)
Post count: 23064

You probably need to set up the event handler to trigger on each cell within the grid (not just the grid, and not just the rows in the grid). Something like this c# sample should do it:

foreach( DataCell cell in myGrid.DataRowTemplate.Cells )
cell.MouseDown += new MouseEventHandler( My_MouseDown_EventHandler );
cell.MouseUp += new MouseEventHandler( My_MouseUp_EventHandler );
cell.MouseMove += new MouseEventHandler( My_MouseMove_EventHandler );

Imported from legacy forums. Posted by AlphaGuys (had 2889 views)