Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 633363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:10:39+00:00 2026-05-13T20:10:39+00:00

My application has a populated datatable and binds it to a ddatagridview by setting

  • 0

My application has a populated datatable and binds it to a ddatagridview by setting the datasource property.

At run time I want to filter this table. When the user clicks a button I run the following code:

dataManager.VDMSTables.DataTable.DefaultView.RowFilter = column + " LIKE '%" + criteria + "%'";

All the classes are populated correctly. At runtime when I reach this line I get the following error message:

Syntax error: Missing operand after ‘Data’ operator. The variables that I use to build the rowfilter are correctly populated. Even when I hard code a string I still get this same error. Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:10:40+00:00Added an answer on May 13, 2026 at 8:10 pm

    What does the actual string you’re constructing look like when you view it in the debugger? The word “Data” doesn’t show up in there, does it?

    If so, then it’s telling you that Data is a reserved word and you need to mark it as such. As in:

    dataManager.VDMSTables.DataTable.DefaultView.RowFilter 
        = String.Format("[{0}] LIKE '%{1}%'"
            , column
            , YourSingleQuoteEscape(criteria) );
    

    That will produce:

    "[Data] like '%strawberries%'"
    

    … which should parse correctly for your RowFilter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple quiz application which has multiple questions. It has no back
My application has a toolbar with ImageButtons that I use as application buttons. I
my application has an issue where if I go back to an activity I
My application has some debug code written specifically to send debug data to the
I am using the WebBrowser control on a Windows Forms application in Visual Studio
I'm quite lost on this one and I hope someone here could help. My
I am new to JavaScript and I am having trouble understanding the scope of
Background: I am getting a Internal Server 500 24 50 error after deploying an
I have a stored procedure which will be used to populate a report in
I am relatively new to developing Cocoa applications on the Mac and come from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.