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.

Delete Key on editable cell

Thread ID:

Created:

Updated:

Platform:

Replies:

81246 May 18,2009 09:51 AM May 20,2009 11:50 AM Windows Forms 5
loading
Tags: GridControl
Alomgir Miah
Asked On May 18, 2009 09:51 AM

Hi,

When I press delete key on the editable cell, the entire row gets deleted. The row should get deleted wonly when the focus is on the row.

Thanks,
Alomgir

Alomgir Miah
Replied On May 18, 2009 03:25 PM

Any advise on how to achieve this.

Rajadurai C [Syncfusion]
Replied On May 19, 2009 10:55 AM

Hi Alomgir,

Thanks for your interest in Syncfusion products.

Please refer to the following points that illustrates the default functionality of delete key press in grid cell.
1) While the cell is in edit mode, delete keypress only deletes the character to the right of the cursor within that cell. This is the default behavior.

2) While the cell is not in edit mode, on setting focus to a cell and pressing delete key, the cell content get cleared.

3) While the cell is not in edit mode and listboxselectionmode is set to one other than None, pressing delete key deletes the entire row contents.

Regards,
Rajadurai

Alomgir Miah
Replied On May 19, 2009 11:17 AM

Hi,

I am using GridDataBoundGrid dounded to IList. The EnableRemove property is set to true.
Here are my

1) While the cell is in edit mode, delete keypress only deletes the character to the right of the cursor within that cell. This is the default behavior.
---I expected this behavior. But instead, the entire row gets deleted. If I set EnableRemove to false to fix this problem, then delete key does not work anymore. So backspace becomes the only option.

2) While the cell is not in edit mode, on setting focus to a cell and pressing delete key, the cell content get cleared.
---The entire row gets deleted.

3) While the cell is not in edit mode and listboxselectionmode is set to one other than None, pressing delete key deletes the entire row contents.
-- havent tried that.

Thanks,
Alomgir

Alomgir Miah
Replied On May 20, 2009 09:59 AM

Hi,

I recreated the grid and it works as expected. I really dont know what happened.

Thanks,
Alomgir

Rajadurai C [Syncfusion]
Replied On May 20, 2009 11:50 AM

Hi Alomgir,

Thanks for your update.

The points which i provided in my previous update are default behaviors in grid. Please let me know with more details regarding the other settings like properties, events, etc., used in your application or a minimal sample in which the issue can be reproduce. It would be fine for us to see the issue and work further to trace the cause for it.

Regards,
Rajadurai

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.

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.

;