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 Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>