DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1374,6 +1374,11 @@ return 0; } } public static decimal? GetDecimal(string s) { if (string.IsNullOrEmpty(s)) return null; return decimal.Parse(s); } public static int ToInt(string str) { try @@ -1595,7 +1600,7 @@ GridView dgv = s as GridView; if (dgv != null) { if (dgv.GetSelectedRows() != null) if (dgv.GetSelectedRows() != null && dgv.GetSelectedRows().Count()>0) { var selectedRow = dgv.GetSelectedRows()[0]; // 获取第一个选中行的索引 if (selectedRow >= 0)