An error message is self-explanatory.
As an
official documentation[
^] states:
Quote:
Real literals using scientific notation, such as 4.42372E-30
, are parsed using System.Double
.
Real literals without scientific notation, but with a decimal point, are treated as System.Decimal
. If the number exceeds the maximum or minimum values supported by System.Decimal
, then it is parsed as a System.Double
. For example:
142526.144524
will be converted to a Decimal
.
345262.78036719560925667
will be treated as a Double
.
BTW: your code is probably wrong!
string strLot = "Lot = '" + textBox1.Text + "'";
string strsearchLot = textBox1.Text;
rows = dt.Select(strsearchLot);