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
2715
clearing all rows
posted

I have an UltraGrid that is populated from a database query. I need to clear the data rows from the grid without losing the columns or affecting the grid layout. I suspect this is easy but am unable to find a solution. Please help.

Thanks,

Parents
No Data
Reply
  • 69832
    Offline posted

    Assuming your query is in the form of a DataTable, call DataTable.Rows.Clear, which will remove all the rows but leave the schema intact.

Children