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
2589
Correctly remove multiple rows at runtime
posted

Hi,

I have a menu button which should delete selected rows from grid. 

Here is my code in OnClick event:

                foreach (Row selectedRow in xGrid.SelectionSettings.SelectedRows)

                {

                    xGrid.Rows.Remove(selectedRow);

                }

 

This code removes only last selected row which has a selector triangle on left. Other rows remain untouched. What is wrong here?

Thank you.