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 have an application, which has a Spinner that I want populated with some
This an C# WPF application with SQL CE as DataSource: I have a DataTable
I have an application that has a UITableView. This UITableView is populated by an
My application has a table that contains snapshot inventory data from each year. For
I have a MDI application. This MDI application has lots of other tools including
I have a ASP.NET MVC application which has a view populated with a model
I'm writing an application that has a QTreeWidget that is populated by parsing an
Our application has a service layer and a DAO layer, written as Spring beans.
Our application has many controls that are created dynamically. For example, a navigation pane
my application has to deal with calendar information (incl. single occurrence, recurrence, etc.). In

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.