UIKit.UITableViewSource.CanEditRow Method
Whether the row located at indexPath should be editable.

Syntax

[Foundation.Export("tableView:canEditRowAtIndexPath:")]
public virtual bool CanEditRow (UITableView tableView, Foundation.NSIndexPath indexPath)

Parameters

tableView
Table view containing the row.
indexPath
Location of the row.

Returns

true if the row is editable, otherwise false.

Remarks

This method allows specific rows to be editable or not. If this method is not implemented, all rows are assumed to be editable. Editable rows display the insertion or deletion control in their cell when the table view is in editing mode.

Rows that are not editable will ignore the UITableViewCell.EditingStyle property and will not be indented.

Rows that are editable, but should not display the insertion or deletion control, can return UITableViewCellEditingStyle.None from the UITableViewSource.EditingStyleForRow(UITableView, Foundation.NSIndexPath) method on the table view's UIKit.UITableViewSource.

Declared in [UITableViewDataSource]

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0