Delete Key on editable cell

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

5 Replies

AM Alomgir Miah May 18, 2009 07:25 PM UTC

Any advise on how to achieve this.


RC Rajadurai C Syncfusion Team May 19, 2009 02:55 PM UTC

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


AM Alomgir Miah May 19, 2009 03:17 PM UTC

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


AM Alomgir Miah May 20, 2009 01:59 PM UTC

Hi,

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

Thanks,
Alomgir


RC Rajadurai C Syncfusion Team May 20, 2009 03:50 PM UTC

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

Loader.
Up arrow icon