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

Reg: key Event

Hi, Is there any possiblility to capture the Ctl+A key in gridGroupingControl1_TableControlCurrentCellKeyUp event. Right now i am using gridGroupingControl1_TableControlCurrentCellControlKeyMessage event. Problem in this event is i have to click the grid cell then only i can able to capture Ctl+A event otherwise not. Thanks, Anna

3 Replies

AD Administrator Syncfusion Team August 18, 2005 08:41 AM

I think you will have to handle two events to catch the two different situations. TableControlCurrentCellKeyDown can catch the ctl+A if there is not an active CurrentCell, and TableCOntrolCurrentCellControlKeyMessage can catch the ctl+A if there is an active current cell.


AS Anna Srinivasan August 18, 2005 09:18 AM

Hi, Could you please send the condition (Ctl+A) for keydown event. thanks, Anna


AD Administrator Syncfusion Team August 18, 2005 09:23 AM

private void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
	if(e.Inner.KeyCode == Keys.A && e.Inner.Control)
	{
		Console.WriteLine("Ctl+A");
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon