How can i remove a point on a layer and in the datatable?
See original GitHub issueHi guys,
I have a point layer, where i can add point on this layer with id, values etc… These values are in the datatable too, how can i delete a point on the map with a simple button or by clicking on the point which delete the point values in the datatable and the point symbol on the map.
I tried pointF.RemoveShapeAt(idOfThePoint)
but it did’nt work.
Thank for your help !
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Remove columns from DataTable in C# - Stack Overflow
To remove all columns after the one you want, below code should work. It will remove at index 10 (remember Columns are 0...
Read more >Removing a data source from a data table
On the authoring bar, click Data canvas . · Make sure the data table of interest is selected. · In the data canvas,...
Read more >Also, can't create second table after remove()/destroy()
I would like to be able to create a second table after removing/destroying the first table. The flow is Map Selection > Ajax...
Read more >Deleting records in a table—ArcMap | Documentation
Right-click the table or layer in the table of contents and choose Open Attribute Table. Select the records you want to delete. Press...
Read more >Why can I not duplicate a data table column.
If you imported the points from a spreadsheet it would be simpler to delete the layer, make the headers of the columns identical...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check whether the feature you deleted has a FID that is not -1 if you remove the feature after reopening the project.
Please also check whether the Features have been initialized before you select the feature you want to remove.
If your layer is in IndexMode the feature gets created from the vertices and can’t be found inside DataSet.Features so it can’t be removed.
As far as I remember I run the following code on layers after reopening projects to make sure I can use them afterwards without errors.
You might solve this in two ways.