We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How do I delete a row in a virtual grid?

I am programming the grid in virtual mode, so far I can populate the grid and add new rows, but how do I delete them? I prefer to delete by hitting the delete key. Thanks in advance, Thomas

1 Reply

AD Administrator Syncfusion Team November 18, 2002 10:33 PM UTC

In a virtual grid, you delete a row of data by removing the row from your external data source and then redrawing the grid. The grid only displays what is in the external data source. So, if you want to initiate this deletion process when the user presses the delete key, you could handle the CurrentCellKeyPress event, and if the keyCode is Keys.Delete, then do whatever you need to do to your external data source to remove the current row.

Loader.
Live Chat Icon For mobile
Up arrow icon