Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...