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
55
How to delete all rows in an ultragrid?
posted

If I want to select, then delete all of the rows in a grid, how do I do that in Visual C#?

Here is the code I have so far:

ultraGridExceptions.Selected.Rows.AddRange(ultraGridExceptions.Rows.All);

 

I am getting this error when trying to build:

 

Error    1    The best overloaded method match for 'Infragistics.Win.UltraWinGrid.SelectedRowsCollection.AddRange(Infragistics.Win.UltraWinGrid.UltraGridRow[])' has some invalid arguments

 

Parents Reply Children