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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Function keys are not working in datagrid

Thread ID:





1104 Sep 20,2002 04:42 PM UTC Sep 21,2002 06:55 AM UTC WinForms 1
Tags: FAQ
Asked On September 20, 2002 04:42 PM UTC

Hello I am using Function Keys(F1, F2...) to open other forms in my Application. My current form has datagrid on it. When a cell in a datagrid got focus, Function keys are not working. I want to know How to make function keys work even when the cells are selected. Need solution in vb.net please. Thanks chen

Clay Burch [Syncfusion]
Replied On September 21, 2002 06:55 AM UTC

You can catch function keys in a DataGrid by deriving the datagrid and overriding ProcessDialogKey. Public Class MyDataGrid Inherits DataGrid Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean If keyData = Keys.F1 Then Console.WriteLine("ProcessDialogKey - F1") Return False ' don't process End If Return MyBase.ProcessDialogKey(keyData) End Function End Class


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon