public static bool IsNumeric(object value)
{
try
{
double i = Convert.ToDouble(value.ToString());
return true;
}
catch (FormatException)
{
return false;
}
}