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
2114
Delete All Rows in the Grid
posted

How should I delete all rows from the grid?

  Private Sub ClearFilterGrid()
    grdFilter.Selected.Rows.AddRange(CType(grdFilter.Rows.All, UltraGridRow()))   
    ' Can't select more than 1 row when SelectType is Single or SingleAutoDrag
    grdFilter.DeleteSelectedRows()
  End Sub

Now, is there an other method but selecting the rows?
Say, if I have a special behavior when a row is selected, I don't want to raise some unuseful events, I just want to delete rows in the grid, it-s all.

Parents Reply Children