Editable Grid On Keypress
-
Hi All, Can any one please tell me how to make a grid editable on a keypress. My exact requirement is I have a Gridview1 which has the edit column and can be updated. but I have been asked to do it in a keypress for eg. if some press F2 the row should be Editable. Thanks in Advance
-
Hi All, Can any one please tell me how to make a grid editable on a keypress. My exact requirement is I have a Gridview1 which has the edit column and can be updated. but I have been asked to do it in a keypress for eg. if some press F2 the row should be Editable. Thanks in Advance
you can code in keypress event to check for F2 key press and then set the edit mode of your grid forexample dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter;
-
Hi All, Can any one please tell me how to make a grid editable on a keypress. My exact requirement is I have a Gridview1 which has the edit column and can be updated. but I have been asked to do it in a keypress for eg. if some press F2 the row should be Editable. Thanks in Advance
2 simple way to complete your requirement. 1.) add a menustrip in your application, then add an item and set the shortcut to f2 2.) add a keyboard event handler in your app and detect if key == Key.f2 either way to fire a function to set the gridview tobe edit mode.
-
2 simple way to complete your requirement. 1.) add a menustrip in your application, then add an item and set the shortcut to f2 2.) add a keyboard event handler in your app and detect if key == Key.f2 either way to fire a function to set the gridview tobe edit mode.
Sorry I forgot to mention that Im in Developing WEB APPLICATION
-
Sorry I forgot to mention that Im in Developing WEB APPLICATION
-
you can add a javascript event capture the keypress, if event == f2, then fire the callback and set the gridview as editmode. FYR. function dosomething() { var key = window.event.keyCode; alert(key); }
Since f2 is a functional key ..can you please tell how to get the keypress value for it
-
Since f2 is a functional key ..can you please tell how to get the keypress value for it
got it through onkeydown event thank you