alice123 Posted November 21, 2007 Posted November 21, 2007 I have a DataTable with ColumnName: ++CustomerName++. when i try to filter this DataTable as string columnName=Table.Columns["++CustomerName++"].ToString(); DataRow[] row = Table.Select(columnName + " = 'Alice'); I am getting the above error. I feel that because the column name is containing '+' sign, I am getting this error. If the column name does not contain + sign then the filtering is working fine for me. My requirement is to have any number of '+' signs in the column name. Please suggest a way out. Quote
RedLeader Posted November 21, 2007 Posted November 21, 2007 (edited) Try to get Collumn by index instead. and after this DataRow[] row = Table.Select("["+ columnName + "]" + " = 'Alice'); Edited November 21, 2007 by RedLeader Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.