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.

Reg: GridGroupingControl [F3 and F4]

Thread ID:

Created:

Updated:

Platform:

Replies:

33281 Aug 17,2005 06:32 AM Aug 17,2005 09:04 AM Windows Forms 3
loading
Tags: GridControl
Anna Srinivasan
Asked On August 17, 2005 06:32 AM

Hi, I am using gridGrouping Control. In that control first column is checkbox. F3 Key --> Check the checkbox F4 Key --> Uncheck the checkbox My problem is if user select rows from the grid( For example 4 rows) and then user click F3 button from the key board, the selected rows should get checked.(F4 button --> Unchecked) How do i do that..? Thanks, Anna

Administrator [Syncfusion]
Replied On August 17, 2005 07:01 AM

You can handle the TableControlCurrrentCellControlKeyMessage event.
private void gridGroupingControl1_TableControlCurrentCellControlKeyMessage(object sender, GridTableControlCurrentCellControlKeyMessageEventArgs e)
{
		Keys keyCode = (Keys) ((int)e.Inner.Msg.WParam) & Keys.KeyCode;
	if(e.Inner.Msg.Msg == 0x100 //WM_KEYDOWN
		)
	{
		if(keyCode == Keys.F3)
		{
			Console.WriteLine(keyCode);
			//loop through the selected records and do waht you want
			e.Inner.Handled = true;
			e.Inner.Result = true;
		}
		else if(keyCode == Keys.F4)
		{
			Console.WriteLine(keyCode);
			//loop through the selected records and do waht you want
			e.Inner.Handled = true;
			e.Inner.Result = true;
		}
	}
}

Anna Srinivasan
Replied On August 17, 2005 07:44 AM

Hi, Please go through the sample. In this sample i have done what you have told. But, check and uncheck are not happenning. Note: Some time it is happening. GGC_SelectCheckBox_ecdfd005_6292.zip

Anna Srinivasan
Replied On August 17, 2005 09:04 AM

Hi, I got the solution.. If i use (gridGroupingControl1_TableControlCurrentCellKeyUp) this event i can able to get that functionality. Thanks, Anna

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.

;