Set the DataSource to null:
gridK.DataSource = null;
题
I'm using Janus Grid, and I want to delete all rows in a Janus grid.
foreach (Janus.Windows.GridEX.GridEXRow row in gridK.GetRows())
{
gridK.Delete();
}
Or any function to clear all Items.
解决方案
Set the DataSource to null:
gridK.DataSource = null;