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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I delete a row in a virtual grid?

Thread ID:

Created:

Updated:

Platform:

Replies:

1668 Nov 18,2002 09:49 PM UTC Nov 18,2002 10:33 PM UTC Windows Forms 1
loading
Tags: GridControl
Thomas Eyde
Asked On November 18, 2002 09:49 PM UTC

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

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;