Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
The entity is currently read-only
posted

We've noticed that even those cells that are set as "IsReadOnly" in a xamGrid are still selectable. If I edit a cell and then hit the tab key, I want the next editable cell to be active. So I've added some ActiveCellChanged code that finds the next editable cell in the row and sets the IsActive property to true. This seems to work pretty slick except... If I edit one cell, hit tab (IsActive is set for the next editable cell) and then edit this next cell, once I leave the grid I get an error stating that "The entity is currently read-only". I'm not sure why. If I use the mouse to select the next editable cell, the update works fine.

Parents
  • 14517
    Offline posted

     Hello,

    I tried to recreate this issue you are having but was unsuccessful. I have attached the sample I used to simulate your solution setting the IsActive property. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.  If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. I tested this solution using NetAdvantage 2010 Vol 3 (build 1006 & 2159).

     If the project does show the product feature working correctly, this indicates a possible problem in the code of your application.  It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.

     Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

    Thanks,

    Valerie

     

Reply Children