Questions tagged [editmode]

103 questions
44
votes
5 answers

UITableView Edit mode

I have UITableView and I am trying to load it by default in edit mode. The problem is when I this line table.editing=TRUE; my rows disappear, I implemented this methods: - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath…
user739509
  • 813
  • 3
  • 10
  • 19
12
votes
3 answers

SwiftUI how to perform action when EditMode changes?

I'd like to perform an action when the EditMode changes. Specifically, in edit mode, the user can select some items to delete. He normally presses the trash button afterwards. But he may also press Done. When he later presses Edit again, the items…
caram
  • 1,494
  • 13
  • 21
11
votes
3 answers

UITableView in edit mode - 'Edit' button doesn't change status

I have a UIViewController class, with a tableView. In viewDidLoad: UIBarButtonItem *editIcon = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemEdit target:self …
Rui Lopes
  • 2,562
  • 6
  • 34
  • 49
7
votes
3 answers

Hiding checkmarks in UITableView multiple selection during Edit Mode

I've got a UITableView which is automatically set up for multiple selection in Edit Mode using the following lines in viewDidLoad: self.tableView.allowsMultipleSelectionDuringEditing = YES; [self setEditing:YES animated:YES]; However, I'd like to…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
7
votes
2 answers

WPF Editable Combobox IsFocused problem

I am developing a Watermarked ComboBox by modifying the ComboBox ControlTemplate. Everything is fine when the ComboBox is not in an editable mode, but when I change the edit mode to True, the IsFocused property is never set to True. This is…
Manohar
  • 293
  • 1
  • 5
  • 16
7
votes
2 answers

Calling a macro from a button in edit mode while in PowerPoint

I'm trying to write a vba macro that can be called in edit-mode in PowerPoint 2007-2010. I can easily add a Command Button to a presentation. However, this button can only be clicked to trigger the vba macro while in slideshow mode. However, what I…
mr_wurm
  • 96
  • 1
  • 4
6
votes
1 answer

Unwanted scrollbars in WebBrowser control when in IE9 mode

Using the WinForms WebBrowser control in edit mode (as described here), I am experiencing unnecessary scrollbars when switching the control into "IE9 mode". I'm using the meta tag as…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
6
votes
1 answer

SwiftUI use editMode's onDelete modifier alongside with custom Swipe Actions on iOS 15

Initial description I currently have a dynamic list and I'm using the SwiftUI built-in editMode feature and the built-in EditButton() in order to let the user to delete items from the list. For the deletion part, I am using the onDelete modifier…
AdamSwift
  • 75
  • 6
6
votes
1 answer

How to determine whether a WPF DataGrid is in edit mode?

Possible Duplicate: Code to check if a cell of a DataGrid is currently edited Is there a way to determine whether a WPF DataGrid is in edit mode / which row is currently edited?
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
6
votes
2 answers

How to set a custom edit-style icon in a UITableViewCell while in edit mode

Is there any way to have a custom edit-style icon (besides the green plus and red minus icons) when enabling edit-mode in a UITableView? I know I could simulate the the edit-mode animation and just move the cell contents to the right and add a…
Marco Mustapic
  • 3,879
  • 1
  • 21
  • 20
5
votes
1 answer

Cell in editmode doesn't fire OnKeyDown event in C#

I've made own datagridview control which ovveride OnKeyDown event: public partial class PMGrid : DataGridView { protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress…
Robert
  • 2,571
  • 10
  • 63
  • 95
5
votes
4 answers

How can I get the selected value from dropdownlist in edit mode of a gridview?

In my application, when I edit a row in the gridview I choose some new data from a dropdownlist. I am populating the dropdown like this: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType ==…
Jeff Norman
  • 1,014
  • 5
  • 25
  • 42
5
votes
1 answer

How do I style divicons in leaflet.draw edit mode?

Using leaflet.draw, I instantiate the drawControl I with: scope.drawOptions = { position: 'topright', draw: { polyline: false, polygon: { icon: new L.DivIcon({ iconSize: new L.Point(16, 16), className:…
4
votes
1 answer

SwiftUI Change View with Edit Mode

I try to change the view state according to edit mode, when is editing hide the view and when it's not editing show the view, when I use on change and print the edit mode value its work but its doesn't work when working with views. struct…
Ammar Ahmad
  • 534
  • 5
  • 24
3
votes
0 answers

Datagrid: Stop/Cancel the AddNew or the EditItem Transaction?

I use a datagrid to show coordinates of "selection rectangles" that the user can create on an image. I use databinding of the data grid to an observable collection, since the coordinates are also needed for other purposes. So, when the user creates…
FM.
  • 31
  • 3
1
2 3 4 5 6 7