Point p = fpSpread2.PointToClient(new Point(e.X, e.Y)) į.CellRange range = fpSpread2.GetCellFromPixel(0, 0, p.X, p.Y) private void fpSpread2_DragOver(object sender, DragEventArgs e) The Spread example uses this event to get the column and row indexes, to clear the previous selection, and to add a new selection based on the selected data. You can use this event to specify what happens after dragging starts and before the control is dropped. The DragOver event occurs when the control is being dragged over another object. String sqlStr = "SELECT * FROM Patients" String conStr = "Provider=.4.0 data source= " + pathname + "Patients2000.mdb" ![]() Pathname = Environment.GetFolderPath() + "\\\GrapeCity\\\Spread Studio 8\\\Common\\\" For example: cr = new .CellRange(0, 0, 1, 1) This Spread example uses data from a database as the source data. Set the AllowDragDrop property for Spread as well as the AllowDrop property to allow data to be dropped on the Spread control. Set the AllowDrop property to true to specify that you can drop data on a control. ![]() The following example demonstrates using drag and drop with two Spread controls and a list box control. Drag and drop requires fewer steps than copy and paste. You can drag and drop data from a Spread control to another Spread control using drag events such as DragEnter, DragOver, and DragDrop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |