This article describes the method of DevExpress to delete all rows by devControl. It hopes to be helpful to readers in C# programming. The specific methods are as follows:
The main function codes are as follows:
/// <summary> /// Delete all rows/// </summary> /// <param name="gridView">GridView</param> public static void ClearRows(this GridView gridView) { bool _mutilSelected = ;//Get the current selection is possible if (!_mutilSelected) = true; (); (); = _mutilSelected;//Is it possible to select multiple states before restoring}
The code usage method is as follows:
<GridControl>(gc => ());