Hiiiii
Hey, I want to delete selected multiple rows at run time without shown Delete Confimation Message.
May be u know when we delete one single row in UltraGrid then open one Confirmation box like "Are u sure u want to delete".
Now my problems is i m deleted multiple rows at runtime in For loop. In this case at very first it asked to me about confirmation message, so that my for loop is terminated that why i m not deleted multiple rows at a time,
Is it Possible.. ? Or is it any propertie for unable to Delete Confirmation Message, ?
- Hiren Lad
By the way... you should never delete items from a collection inside for...each loop. This will usually cause an exception, because you will be iterating the list at the same time you are modifying the contents of that list. At the very least, you will end up skipping some items in the list.
If you need to delete all of the items in a list, the best thing to do is copy the list to array or else use a for loop and index into the list backward (starting at the end and working your way toward zero).