Happy New Year, May I ask how to delete the current selected row to compare norms

Image_4093_1705234383099

System. ArgumentOutOfRangeException:“Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index”

Errors are reported irregularly


2.Image_1477_1705234414423



3 Replies

DD Dhivyabharathi Dakshinamurthy Syncfusion Team January 15, 2024 12:17 PM UTC

Hi Yu ma,

We already have direct support for deleting the currently selected records using the API called 'AllowDeleting'. You can achieve this requirement by utilizing the 'AllowDeleting' property of the datagrid.

Kindly refer the below mentioned UserGuide Documentation.
UG Link : https://help.syncfusion.com/windowsforms/datagrid/datamanipulation#delete-row

Kindly confirm the details regarding why you are customizing it. Are there any specific reasons?

Providing these details will help us offer a better solution.

Regards,
DhivyaBharathi Dakshinamurthy



YM yu ma January 16, 2024 12:33 PM UTC


Image_6952_1705408397102

orderInfoCollection


DD Dhivyabharathi Dakshinamurthy Syncfusion Team January 17, 2024 05:54 PM UTC

Hi Yu ma,

Based on the information provided, we have checked the reported scenario of "To delete the selected rows programmatically in the datatable". We have prepared a sample with the code snippets you mentioned, We were unable to replicate the issue from our end, as it is working fine as expected.


Can you please provide the following information which will be very useful for us to provide better solution.

 

  • Can you please provide a sample in which the issue replicates.
  • Can you please share the call stack Details.
  • If possible can you please replicate the issue in the sample which we have provided.

 

Providing these details will help us better understand the issue and work towards finding a solution promptly.

Regards,
DhivyaBharathi Dakshinamurthy


Attachment: DeleteRecord_Demo_468617bb.zip

Loader.
Up arrow icon