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.

Leaving edit mode when you can''t wrap

Thread ID:





34182 Sep 6,2005 03:04 AM Sep 6,2005 03:58 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On September 6, 2005 03:04 AM

I''ve got a grid where I''ve set the WrapCellBehaviour to None, and the ActivateCurrentCellBehavior to None. When I finish editing a cell and hit enter, it goes out of edit mode and moves to the next column (as expected). However when in the last column, since it can''t go to the next column, it goes straight back into edit mode - looking to the user as if the changes haven''t been applied. I want the grid to leave edit mode (as if the grid cell had just been moved to). Whats the best way to get this behaviour? Thanks, Sue

Administrator [Syncfusion]
Replied On September 6, 2005 03:58 AM

You can do this in QueryNextCurrentCellPosition.
private void gridControl1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
	if(e.ColIndex > this.gridControl1.ColCount)
		if(this.gridControl1.CurrentCell.Renderer.Control != null 
			&& this.gridControl1.CurrentCell.Renderer.Control.Visible)
		e.Handled = true;
		e.Result = false;


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.