Hi,
how to delete the entire grid? (vb.net)
Thanks for your help
Ronald
thank you very much for your help.
Frank
Hello Ronald,
Angel's suggestion would work, but by executing that through the grid you'll end up triggering all kinds of events that you're not intending here. I would suggest actually deleting from your underlying data source, and that change will be reflected in your UltraGrid.
Please let me know if I can further assist you.
Primero Seleccionas todo el rango de filas de la grilla
this.Ultragrid1.Selected.Rows.AddRange((UltraGridRow[])this.Ultragrid1.Rows.All);
para despues borrar todas las filas de la grilla y asi quedaria totalmente limpio
this.dgvUltragrid1.DeleteSelectedRows(false);