Hi All,
I am using datagrid control in my window application. I am designing the grid by a table and table style to add extra controls in the cells like button and drop down.
Now, I have everything ok, But it want to disable the navigation in the datagrid cells by arrow keys. I dont want to change the cell by the arrows key as the Tab key does.
Is there anybody to help me out.
Thnx in advance.
Mos
User Profile
Collapse
-
Disable Navigation In Datagrid by Arrow Keys
-
Hi All,
I am using datagrid control in my window application. I am designing the grid by a table and table style to add extra controls in the cells like button and drop down.
Now, I have everything ok, But it want to disable the navigation in the datagrid cells by arrow keys. I dont want to change the cell by the arrows key as the Tab key does.
Is there anybody to help me out.
Thnx in advance.
Mos -
Hi chatelain,
Thanks a lot. your code solved my problem and now I solve urs :)
To get the click event of the button in the cell (that u selects), please add declare the following italic line (pointed by arrow) line as
---> Dim ButtonControl As New Button
ButtonControl.T ext = "Path"
ButtonControl.W idth = 50
ButtonControl.C ursor = System.Windows. Forms.Cursors.A rrow...Leave a comment:
No activity results to display
Show More
Leave a comment: