I want to select rows from DataTable. Select criteria includes anding and the columns name have a space b/w them as you can see below:
int distributionLineIdex = import.VendorInvoiceLineDetailTable.Select
("Number='AMEX0311_00011' and Line number='001'").Count();
I am getting the following exception :
Syntax error: Missing operand after 'number' operator.
What am I missing here ?
Use
[Line Number] = '001'
instead
This is also true when the field name in DataTable is numeric. In that case use:
[2] = 7878 AND [6] = 'eee'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With