protected bool IsNumeric(object o) { try { Double.Parse(o.ToString()); } catch (Exception) { return false; } return true; }