Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1775
Excel-like behavior: drag the border of a cell and copy the values
posted

Hello,

I have configured a datagrid, so that it looks and behaves more or less like Excel (for instance, by setting CellClickAction to CellSelect)
I would like to implement the feature that user can press a mouse on the border of the cell and drag it to some other cell(s), and value will be copied in these cells on drop. Pretty much drag'n'drop as in Excel.

I'm pretty much sure that "there is no intrinsic functionality to do this" :), but maybe there is still a way to implement this.

Probably a good starting point is SelectionDrag event in the DataGrid. But how can I determine that the border of the cell was clicked (and not somewhere in the middle of the cell)? The next question would be, can I provide some visual help about cells which will be affected by the drop operation (like Excel does)?

Thanks 

Parents Reply Children
No Data