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
490
Delete Row from Grid.
posted

 I try to delete row from Grid using the follwing code :

   Int32 index = Grid.ActiveRow.Index;                          
   Grid.ActiveRow.Delete(false);

 But This error comming :

 ---------------------------
Data Error
---------------------------
Unable to delete the row:

Collection was of a fixed size.
---------------------------
OK   
---------------------------

Parents
No Data
Reply
  • 17259
    Offline posted

    Some collections are read only like array and ReadOnlyCollection. If this is your case, than your data source should have IsFixedSize = true. Debug and see if it is true, or try to delete the row like any user (select the row and press "delete").

Children