T
Tarun Mistry
Hi all, I have a DataTable im trying to filter, however I simply cannot get
what appears to be a simply expression to work.
Int cartId = 15;
string expression = "cartId =" + cartId;
DataRow[] test = myDataTable.Select(expression);
This always returns no datarows. However, if I hard code the expression
("cartId = 15") it works fine. How can I get my parameter to work?? i have
tried Convert.ToInt32(...), etc etc. The datatype is Int32.
Please help.
Kind regards
Taz
what appears to be a simply expression to work.
Int cartId = 15;
string expression = "cartId =" + cartId;
DataRow[] test = myDataTable.Select(expression);
This always returns no datarows. However, if I hard code the expression
("cartId = 15") it works fine. How can I get my parameter to work?? i have
tried Convert.ToInt32(...), etc etc. The datatype is Int32.
Please help.
Kind regards
Taz