This is a migrated thread and some comments may be shown as answers.

Unable to get my grid to enter edit mode

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 03 Feb 2009, 04:25 AM
Hi - I am new to these controls and have so far been very impressed. I am trying to write a generic grid control to use for editing reference data in my database. I am developing in C# and using the v8.2.0.0 of the Telerik controls.

I drop a RadGridView onto my form and add a few columns but when I run the application I am unable to enter *edit* mode, even though the *new* row is showing up and the context menu is giving the option to *edit* existing rows.

If I double click on a row, or hit enter, or F2, nothing happens - it is as if the row/grid is locked.

Does anyone have an idea what I could be doing wrong here? I am sure it is something simple - but I have spent the last 2 hours searching the docs and trying countless combinations of property settings etc - with no luck!

Thanks in advance!
Ben

3 Answers, 1 is accepted

Sort by
0
Prad
Top achievements
Rank 2
answered on 03 Feb 2009, 06:20 PM
Hi Ben,

Check the properties of MasterGridVIewTemplate --> AllowEditRows = true

If above has been set and unable to edit on cells. Change the DatatTable / DataSet column.READONLY = false.

Pradeep
0
Ben
Top achievements
Rank 1
answered on 03 Feb 2009, 08:16 PM
Hi Pradeep,

Firstly thanks for taking the time to offer your assistance! I checked those two properties and they were set as you specified so no luck unfortunately.

However I did manage to work out what is wrong - and as expected it was my fault and a simple fix. I was using a custom helper method for adding columns to my grid. However I was mistakenly using the GridViewDataColumn class for all my columns, instead of GridViewTextBoxColumn. The data column obviously has no editor and hence the reason it would not enter edit mode.

Apologies for such a stupid mistake! But thanks again for your help.

Regards,
Ben 
0
Deyan
Telerik team
answered on 05 Feb 2009, 01:17 PM
Hi Pradeep,

Thanks for your assistance.

Ben, I am glad to hear that you are impressed by our product :-)

I am also happy that you managed to overcome your impediment.

Do not hesitate to ask for help any time you experience difficulties with our product. We are here to help.

Kind regards,
Deyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Ben
Top achievements
Rank 1
Answers by
Prad
Top achievements
Rank 2
Ben
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or