G
Guest
I try to get specific rows from dataTable using the
select method with simple criteria.
For the following lines I the values of the variables are :
expression : "Account like 6133101" ("Account " is the name of my
column.)
This code gives Error message :
{"Cannot perform 'Like' operation on System.String and System.Int32." }
Can U please help me and tell me what I do wrong?
Thank U in anticipation !!!
select method with simple criteria.
For the following lines I the values of the variables are :
expression : "Account like 6133101" ("Account " is the name of my
column.)
Code:
System.Data.DataRow[] foundRows;
string expression;
expression = "Account like " + Convert.ToString(myRow["Account"]);
foundRows = myDS.Tables[i].Select(expression);
This code gives Error message :
{"Cannot perform 'Like' operation on System.String and System.Int32." }
Can U please help me and tell me what I do wrong?
Thank U in anticipation !!!