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.

Ctrl-Del key combination on grid

Thread ID:

Created:

Updated:

Platform:

Replies:

6922 Sep 4,2003 09:08 PM Sep 7,2003 06:50 PM Windows Forms 4
loading
Tags: GridControl
jacky chen
Asked On September 4, 2003 09:08 PM

what does the Ctrl-Del key combination actually do on the current cell on a grid control? my grid is all working fine until user presses Ctrl-Del, the contents in the current cell get deleted, that's fine but the cell type also changes to Static, which stops user from further editing the cell thanks in advance!

Administrator [Syncfusion]
Replied On September 5, 2003 02:42 AM

I don't see this behavior in version 1.6.x.x when I just drop a GridControl on a Form. The sample I used is attached. Pressing ctl+del does delete the content of the cell, but I can continue typing and editing the cell. What is different about what you are doing?

jacky chen
Replied On September 7, 2003 01:56 PM

mine is version 1.5.2.0 and the CellSettings for the grid control is set to be Static on CellType then i changed the CellType for some of the cells into TextBox in my code and then when i do Ctrl-Del, the Cell seams to become Static again any idea what's going on? thanks!

Administrator [Syncfusion]
Replied On September 7, 2003 03:56 PM

The cell style is probably being cleared. You can avoid this by handling ClearingCells.
private void gridControl1_ClearingCells(object sender, GridClearingCellsEventArgs e)
{
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	if(cc.RangeInfo == e.RangeList.ActiveRange && 
		this.gridControl1[cc.RowIndex, cc.ColIndex].CellType == "TextBox")
	{
		e.Handled = true;
	}
}

jacky chen
Replied On September 7, 2003 06:50 PM

alright, that works, thanks!

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.

;