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 7617721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:13:09+00:00 2026-05-31T03:13:09+00:00

i want to filter the data from a datatable using dataview row filter Datatable

  • 0

i want to filter the data from a datatable using dataview row filter Datatable having the column name month having like this “01-04-2012 00:00:00”. I want to get the get the data using this format..

This is my partial code

     dv1 = dtable.DefaultView;
            DateTime start = new DateTime(DateTime.Now.Year, 4, 1,0,0,0);

            dv1.RowFilter =Convert.ToString(start); //"Month = '04-01-2011 00:00:00'"; 

it returns the following error : Syntax error: Missing operand after ’00’ operator. I can’t able to fix this error please help me to do this …

  • 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-31T03:13:10+00:00Added an answer on May 31, 2026 at 3:13 am

    You need to enclose the datetime value into #. You also have to say what column you want to compare with this value.

    For example:

    dv1.RowFilter = String.Format(CultureInfo.InvariantCulture.DateTimeFormat,
                    "Date = #{0}#", start);
    

    (where Date is the actual name of your datetime-column)

    • DataView.RowFilter Property
    • Using the InvariantCulture Property
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to filter rows from a data.frame based on a logical condition. Let's
I want users to be able to filter grid data without using the intrinsic
I want to filter the data from a text file in unix. I have
I make some table use DataTable. I make this table can filtering data from
Can you pass some data from a javax.servlet.Filter to a Jersey endpoint without using
I want to filter the data in my SQL so that I only have
I want to filter elements from a list of lists, and iterate over the
I need to limit the row numbers with 10 while autocomplete. Data is from
I'm trying to read data from the WMI Win32_NTLogEvent class, but I only want
I populate a combobox with some data from ria services. This is basically used

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.