DroppedFilesCell Property

Returns the host screen field that corresponds to the datagrid cell the file was dropped onto.

This property is not suitable for inserted grids, columns or rows.

object.DroppedFilesCell as DataGridCell Object

Use

This property returns the host screen field that is the equivalent to the datagrid cell object that the file was dropped onto. Use the Row and Column properties of this object to determine the first character position of the field on the host screen presentation space to which the cell corresponds. Note that column is the position of the field from the right hand side of the screen however row is the position from the top of the subfile - not the top of the screen.

TIP !

Files can only be dropped onto an object if the AllowDrop property is set to True.

Examples

The following example saves the name of the file dropped and the row and column index of the host screen field into which the file was dropped as variables.

VB SCRIPT

vDroppedFile = App.ActiveForm.grdMyGrid.DroppedFiles(App.ActiveForm.grdMyGrid.DroppedFiles.count - 1)

vDroppedFileRow = App.ActiveForm.grdMyGrid.DroppedFilesCell.Row

vDroppedFileColumn = App.ActiveForm.grdMyGrid.DroppedFilesCell.Column

JSCRIPT

vDroppedFile = App.ActiveForm.grdWrkActJobs.DroppedFiles(App.ActiveForm.grdWrkActJobs.DroppedFiles.count - 1);

vDroppedFileRow = App.ActiveForm.grdWrkActJobs.DroppedFilesCell.Row;

vDroppedFileColumn = App.ActiveForm.grdWrkActJobs.DroppedFilesCell.Column;

Applies To

Datagrid control

See Also

DroppedFiles collection | AllowDrop property