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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Leaving edit mode when you can''t wrap

Thread ID:





34182 Sep 6,2005 07:04 AM UTC Sep 6,2005 07:58 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On September 6, 2005 07:04 AM UTC

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 07:58 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon