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

Cell selection and editing

Thread ID:

Created:

Updated:

Platform:

Replies:

9821 Jan 13,2004 05:11 AM UTC Jan 13,2004 09:23 AM UTC WinForms 1
loading
Tags: GridControl
Boris Jansen
Asked On January 13, 2004 05:11 AM UTC

Hello! I have an another problem ;-) how can i select next row and an specified cell? for example: after editing was complete in row 1 cell 5, i want to select row 2 and cell 2. this cell 2 must have the cursor (like blinking), so that i can editing this cell. any idea? sorry my english is bad ;-) thanks a lot boris

Administrator [Syncfusion]
Replied On January 13, 2004 09:23 AM UTC

I think you can do this by handling the QueryNextCurrentCellPosition event.
private void gridDataBoundGrid1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
{
	GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
	if(cc.RowIndex == 1 && cc.ColIndex == 5)
	{
		cc.MoveTo(2,2, GridSetCurrentCellOptions.SetFocus);
		cc.BeginEdit(true);
		e.Handled = true;
		e.Result = false;
	}
}

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.

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

;