AD
Administrator
Syncfusion Team
May 5, 2003 03:22 PM UTC
The problem is that with ListboxMode set, the row is always selected even if you are editing a cell. So, when a delete key is seen, there is a selected row, so the grid deletes it.
I think this is something that is more easily fixed in our source. I'll pass the problem onto Stefan to see what he thinks.
One way to work around it is to temporarily remove the selection when the delete key is pressed. You can do this in a ProcessDialogKey override. Then you could handle OnCurrentCellChanged, and re-select the row if teh selection is missing.
KJ
Kenneth Johnson
May 5, 2003 03:37 PM UTC
Actually, the dialog in question was not originally written by me. I was working on something else and noticed the behavior. The grid should have been extended select and I have since revised it. Just thought that you would want to know about the single select problem.
Later.
Ken