DevExpress ASPxGridView edit mode

Recently I wanted to add an edit mode button to the ASPxGridView control as outlined in this example.

Unfortunately it did not work as expected; the “Edit” command button simply did not do anything when being clicked.

Resolution

After some investigation I figured out that the property KeyFieldName of the grid view must be set to the key field.

In my grid, I forgot to set it.

After setting it; it worked just as expected. :-)

Leave a comment