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;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top