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.

Cell selection and editing

Thread ID:

Created:

Updated:

Platform:

Replies:

9821 Jan 13,2004 12:11 AM Jan 13,2004 04:23 AM Windows Forms 1
loading
Tags: GridControl
Boris Jansen
Asked On January 13, 2004 12:11 AM

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 04:23 AM

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.

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.

;