static void ClearGridHistory() { string stateLayoutPath = string.Format("{0}\\{1}", Application.StartupPath, UiUtility.StateConfigPath); if (Directory.Exists(stateLayoutPath)) { UiUtility.ClearFolder(stateLayoutPath); } }