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,
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.
Thanks Brian!
Yes, but that datatable is set locally in the loading function, so after exiting it, I don't have acces to it.
Doesn't the grid have any clear content or clear datasource method ?