shabzo says:
new
DataColumn(
"ProdCode"
,
typeof
(
int
)),
new
DataColumn(
"Product"
,
typeof
(
string
)),
new
DataColumn(
"Qty"
,
typeof
(
int
)),
new
DataColumn(
"Price"
,
typeof
(
int
)) });
Change with the below.
new DataColumn("ProdCode", typeof(string)), new DataColumn("Product", typeof(string)), new DataColumn("Qty", typeof(int)), new DataColumn("Price", typeof(decimal)) });
Change the datatype as per the data.