Put RadGridView (WinForms) to Edit mode

2 Answers 371 Views
GridView
Vitalii
Top achievements
Rank 1
Iron
Vitalii asked on 14 Nov 2022, 11:52 AM

How to do this (I hope) simple action?

I tried to set BeginEditMode to different options, AllowEditRow is set to true, but when I press F2 (for example) nothing happens.

Data displayed ok.

What additionally have I do?

Why there is no guide in documentation? Or I didn't find it?

Thank you!

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Nov 2022, 12:16 PM

Hello, Vitalii,

I would recommend you to have a look at the following help article demonstrating the editing lifecycle in RadGridView:

https://docs.telerik.com/devtools/winforms/controls/gridview/editors/editing-lifecycle 

If you want to activate the editor for a certain cell, make sure that you have a current cell (current row and current column). Then you can call the RadGridView.BeginEdit method.

In case you need further assistance please provide me with more details about your actual scenario.

I hope this helps. Let me know if you need further assistance.

 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Vitalii
Top achievements
Rank 1
Iron
commented on 14 Nov 2022, 12:24 PM

Probably it is a bit tricky.

I do select row by clicking on it, then I click on the cell, press F2, try to enter something but the cell does not come to the Edit mode.

Or there is no inplace editing and I have to call popup editor?

Dess | Tech Support Engineer, Principal
Telerik team
commented on 16 Nov 2022, 04:49 PM

Hello, Vitalii,     

If RadGridView is not read-only and the editing process is not cancelled either by handling the CellBeginEdit event or by using BeginEditProgrammatically, it is possible to enter edit mode by pressing F2. By default, RadGridView starts editing a cell when clicking on a current row. So, you should first make the row current by single click, and clicking a second time on the same row will start the editing process. I have attached my sample project. Please give it a try and see how it works on your end. Am I missing something? Could you please specify the exact steps how to reproduce the problem?

I am looking forward to your reply.

0
Vitalii
Top achievements
Rank 1
Iron
answered on 29 Nov 2022, 09:12 AM
MasterTemplate was guilty. It was set to ReadOnly mode.
Tags
GridView
Asked by
Vitalii
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Vitalii
Top achievements
Rank 1
Iron
Share this question
or