---
title: "canDragRows(with:inColumn:with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/candragrows(with:incolumn:with:)"
---

# canDragRows(with:inColumn:with:)

Indicates whether the browser can attempt to initiate a drag of the given rows for the given event.

## Declaration

```swift
func canDragRows(with rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent) -> Bool
```

## Parameters

- `rowIndexes`: Rows the user is dragging
- `column`: Column containing the rows the user is dragging.
- `event`: Mouse-drag event.

## Return Value

Return Value true when rowIndexes identifies at least one row and all the identified rows are enabled; otherwise, false.

## See Also

### Related Documentation

- [browser(_:canDragRowsWith:inColumn:with:)](appkit/nsbrowserdelegate/browser(_:candragrowswith:incolumn:with:).md)

### Dragging

- [setDraggingSourceOperationMask(_:forLocal:)](appkit/nsbrowser/setdraggingsourceoperationmask(_:forlocal:).md)
- [draggingImageForRows(with:inColumn:with:offset:)](appkit/nsbrowser/draggingimageforrows(with:incolumn:with:offset:).md)
