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. Image for the cookie policy date
close icon

GGC editing active/currentcell

hi there !!! first i have to give thanks for a nice job helping us to solve our issues, nice product to. well the point is, that i had implemented TableControlCurrentCellKeyDown event to handle my keyboard, lets look a piece of code: ... if(e.Inner.KeyCode == Keys.F2) { pos.Renderer.CurrentCell.BeginEdit(true); } ... works !!, de I beam gets inside de CurrentCell, but, there is a way to HighliT de text inside the cell?, NOTE: thanks Clay and Stefan, workload season troubles don´t let me answer your last mail thread, but your replays always makes my life easier !!

2 Replies

AD Administrator Syncfusion Team June 28, 2005 11:55 PM UTC

Try code like:
private void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	if(e.Inner.KeyCode == Keys.F2 && cc.Renderer is GridTextBoxCellRenderer)
	{
		cc.BeginEdit(true);
		TextBoxBase tb = ((GridTextBoxCellRenderer)cc.Renderer).TextBox;
		tb.SelectAll();
		e.Inner.Handled = true;
	}
}


LJ Luis Javier Mompart June 29, 2005 08:28 AM UTC

works !! thanks.

Loader.
Live Chat Icon For mobile
Up arrow icon