I Have Problem In filtering in gridview by using binding source

bs.Filter = String.Format("SalesDate >= '{0:yyyy-MM-dd}' AND SalesDate <= '{1:yyyy-MM-dd}' ", FromDate, ToDate);
By Using This above filtering line, I got this error
Cannot perform '>=' operation on System.DateTime and System.String.

Try the date format which is specified in documentation, based on ‘#’:
bs.Filter =
string.Format(
"SalesDate >= {0:'#'MM'/'dd'/'yyyy'#'} AND SalesDate <= {1:'#'MM'/'dd'/'yyyy'#'} ",
FromDate, ToDate );

Similar Messages

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

  • My friend use the charger of my macbook air 45w to chard her macbook white and i worry coz i no want later when i use the charger with my macbook air spoil. help can have problem my macbook air if i use now the charger????

    happend today my friend ask me if she can use my charger of my macbook air and she take from my bag. but the problem is she use macbook white. and i asking if that can make problem later when i want to use the charger to chard the air or not. i am using now but i just worry. my friend use 10 minutes the charger. do u think can have problem the magsafe or something like that?? helpp huhu i am using now but i no want me stay worry always thaxx

    yes still work the charger i was worried coz she plug my charger into her MB so me so scared thinking that will can make problem to my air if i plug. huhuh

  • I have problem running the inverted pendulum trainer using NI ELVIS.

    i have a problem running the inverted pendulum trainer using NI ELVIS. While loading the NI ELVIS bypass VI it is unable to find the "enable communications bypass.vi". could anybody please attach the VI.
    I am using NI ELVIS 2
    Thanks

    The Enable Communications Bypass VI sounds like a VI that is only included with Traditional or legacy ELVIS designed to work with the first generation ELVIS unit, not the ELVIS II/II+ or myDAQ. It sounds like the inverted pendulum trainer you have is for use with ELVIS I. In the LabVIEW Loading dialog, do you see the full path for where it's looking for the VI? Can you provide that full path? If the inverted pendulum trainer is designed to work with the older ELVIS unit, there may be a newer version that supports ELVIS II.
    Donovan

  • Problem in data loading in 0PM_DS05 using data source 0PM_MEASUREMENT

    Hi Gurus,
    I have to load data in OPM_DS05 ODS using 0PM_MEASUREMENT data source.
    Now the problem what I am facing is, there is a field equipment number which was there in data source but not mapped to infoobject then I mapped that field
    EQUNR(R3 field) to 0EQUIPMENT(BI infobject) after this  when I try to load data error is comming and when I check the dump I understand that there is some routine written in update rules which refers master data of 0EQUIPMENT thus what I got is I have to load master data first then the ODS but when I load master data then request is not comming in the ATTRIBUTES 0EQUIPMENT.
    I am using 0EQUIPMENT_ATTR data source to load data to 0EQUIPMENT.
    Please help me out from the situation what should I do and also suggest whether it is necessary to load master data for 0EQUIPMENT.
    Your efforts will be appreciated.

    Hi,
    in generally it is always a good idea to load the master data first. In your case there are still some questions.
    a) did you activate the master data after loading?
    b) what kind of short dump are you getting while loading the transactional data?
    c) what is the routine doing?
    I guess your loading issues are more related to the routine than anything else.
    regards
    Siggi

  • HT1725 after purchased MOVIE, Down LOAD MAY have problem. PLS ADV HOW TO USE DOWN ROAD and HOW TO OPEN it.

    I have purchased 1 MOVIE first time from ITUNE. but maybe some problem in Downroad.
    It mentione some error and I don't Know How to solve and How to use Purchased Movie when I want watch the Movie.   Thanks.

    I have purchased 1 MOVIE first time from ITUNE. but maybe some problem in Downroad.
    It mentione some error and I don't Know How to solve and How to use Purchased Movie when I want watch the Movie.   Thanks.

  • I have problem with the GPS when i use the apps

    I try to use diffents apps like Runstatic, RunKeepr, Emondo and the record after any running activiti it shorw me a no correct distance and no correct way on the map. Always is more than i did. Is a problem with the GSP of my Iphone ? How I can solvet the problem ? Thanks so much

    Hello eamt,
    Thank you for the details of the issue you are experiencing when you are using apps that use GPS.  It sounds like you are seeing some inaccuracy when using these apps.  I recommend the following steps to improve GPS accuracy:
    Improve GPS accuracy2,4
    GPS accuracy varies depending on the number of visible GPS satellites. Locating all visible satellites can take several minutes, with accuracy gradually increasing over time. Use these tips to improve GPS accuracy:
    Ensure the date, time, and time zone are correctly set on the device in Settings > General > Date & Time. If possible, use Set Automatically.
    Important: Incorrect settings on your computer can sync to your device. Verify the date, time, and time zone on any computer that syncs with your device.
    Restart your device.
    Verify that you have a cellular or Wi-Fi network connection. This allows the Assisted GPS (A-GPS) on the device to locate visible GPS satellites faster, in addition to providing initial location information using the Wi-Fi or cellular networks.
    Note: Microcells (sometimes called Femtocells) aren't supported with Location Services.
    Maintain a clear view of the horizon in several directions. Keep in mind that walls, vehicle roofs, tall buildings, mountains, and other obstructions can block line of sight to GPS satellites. When this occurs, your device will automatically use Wi-Fi or cellular networks to determine your position until the GPS satellites are visible again.
    Find the full article here:
    iOS 7: Understanding Location Services
    http://support.apple.com/kb/HT5594
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have problems with arabic text in Facebook using Firefox V5

    the problem is when i open the social website Facebook.com on Firefox V.5 i cannot read nor write in Arabic language because the letters are displayed separately and not connected to form words, although when i use chrome to open Facebook.com i do not face this problem.
    waiting for your prompt feedback for this problem.
    Hisham.

    Maybe check the value of the pref gfx.font_rendering.harfbuzz.scripts on the about:config page and try different values like 1 if the default value (3) doesn't work.
    *resource:///greprefs.js
    *http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxUnicodeProperties.h
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • I have problem with Bluetooth on my Qosmio G20

    Hi
    I have problem with Bluetooth.
    I cannot use it because it is always off.
    (Why Bluetooth Settings reports "Bluetooth is not Ready.")
    I gone to Pro.Center in our area and he side (you delete your .. Definition of the Bluetooth!
    But how!!!
    whatever
    How I get a new Definition of the Bluetooth?
    Is that possible?
    Please help me ... and learn me about all the Bluetooth things...
    My pc is (TOSHIBA Qosmio G20)
    I am waiting...

    You should have a look at:
    http://aps.toshiba-tro.de/bluetooth/redirect.php?page=pages/faq/bluetoothnotworking.html

  • I have problem with my battery

    hello. macbook 2.4 2008 late (upgrade Lion) 4Gb Ram
    i have problem with my battery cause i used 4 years... and i check that the count down time is wrong onces is 2:10 and the next minute is 1:45
    so i buy a new one.. and i check that again i have the same problem.. where is the real problem?

    Try doing a SMC RESET.
    see if that sorts it out for you.
    good luck

  • I have problem to connect PC-6288

    I have problem to connect PC-6288; I use latest version of PC-suite. I installed correctly pc-suite and cable drivers; I unistalled, installed and reebooted pc many times, but the problem remains the same: I cannot connect pc by cable to go to internet. PC-suite says that there is'nt modem, but I saw in START/CONTROL PANEL/MODEM and in START/CONTROL PANEL/SYSTEM/HARDWARE/PERIPHERICAL SETTING and is all ok. Modem is present and all drivers for nokia pc-suite are ok.
    Is there someone that can help me?
    THANK YOU.

    Maybe problem is in PC Suite (I'm not sure). Anyway, maybe Nokia is fixed this in newest PC Suite version (will be come soon), see this:
    /discussions/board/message?board.id=pcsuite&message.id=12990

  • Oracle Text - Problem with filtering binary documents (.doc, .pdf, etc...)

    Hi, I have a problem with filtering binary documents (.doc, .pdf, etc...). I use SQL*PLUS for remote access to Oracle 10.2 on Linux and I create table:
    CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    I insert to this table:
    INSERT into test values(1, 'PATH/text1.doc‘);
    INSERT into test values(2,'PATH/text2.doc‘);
    and then:
    CREATE INDEX test_index ON test(text) indextype is ctxsys.context
    parameters (’datastore ctxsys.file_datastore
    filter ctxsys.auto_filter’);
    Message "Index created" is displayed, but objects: DR$test_index$I, DR$test_index$K, DR$test_index$N, DR$test_index$R and DR$test_index$P are empty => index wasn´t created probably.
    I don´t know, where is bug, either bug is somewhere in this code or on the server (wrong installation oracle or constraint privileges). Do you know in what is bug?

    The following is an excerpt from the 10g online documentation. Note the items that I have put in bold.
    "FILE_DATASTORE
    The FILE_DATASTORE type is used for text stored in files accessed through the local file system.
    Note:
    FILE_DATASTORE may not work with certain types of remote mounted file systems.
    FILE_DATASTORE has the following attribute(s):
    Table 2-4 FILE_DATASTORE Attributes
    Attribute Attribute Value
    path path1:path2:pathn
    path
    Specify the full directory path name of the files stored externally in a file system. When you specify the full directory path as such, you need only include file names in your text column.
    You can specify multiple paths for path, with each path separated by a colon (:) on UNIX and semicolon(;) on Windows. File names are stored in the text column in the text table.
    If you do not specify a path for external files with this attribute, Oracle Text requires that the path be included in the file names stored in the text column.
    PATH Attribute Limitations
    The PATH attribute has the following limitations:
    If you specify a PATH attribute, you can only use a simple filename in the indexed column. You cannot combine the PATH attribute with a path as part of the filename. If the files exist in multiple folders or directories, you must leave the PATH attribute unset, and include the full file name, with PATH, in the indexed column.
    On Windows systems, the files must be located on a local drive. They cannot be on a remote drive, whether the remote drive is mapped to a local drive letter."
    With accessible paths and files, you get something like:
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(1,'c:\oracle11g\banana.pdf');
    1 row created.
    SCOTT@orcl_11g> INSERT into test values(2,'c:\oracle11g\cranberry.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
           608
    SCOTT@orcl_11g> In the following, I used a non-existent path and non-existent file name, which produces the same results as when you use a remote path that does not exist locally.
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(3,'c:\nosuchpath\nosuchfile.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
             0
    SCOTT@orcl_11g>

  • Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

  • Problem with filtering on material

    I encountered a problem when filtering on material numbers that have a period in them (e.g. 111.10.114.00). 
    This happens only on materials that contain a period, and it only happens if you do not use the checkboxes to select the filter value. 
    If you use the funnel to filter AND use the checkbox to select what you want, then everything works fine.
    If you filter by using u201CKeep filter valueu201D and selecting the line then it does not work
    If done on material number that has no period (.) in it, then itu2019s ok.  If the material has a period (.) then filter does not work.  This seems to happen only with period as a character.  Tried materials with letters in them and dashes, these worked ok.
    does anyone had this issue before or knows any OSS Notes that could be helpful?
    Thanks
    best regards
    Nesimi

    hi,
    for executing  BAPI_MATERIAL_GET_DETAIL bapi i have to set
    VALUTIONARA .Thats why i am asking ,how to get valutionarea.
    regards
    Guru

  • Problem in filtering the records in Query

    Dear Gurus,
    I am struck with a problem of filtering data and am not able to visualize the solution so need a solution.
    so here is the requirement:
    I have a multiprovider with 3 infocubes.
    All these infocubes have a dimension names product family and in it there is a infoobject named FAMILY & it is having a attribute named DATE and DATE attribute is not a navigational attribute of FAMILY.
    Example:
    family : A
    attribute date: #
    for period: 011.2010
    family : A
    attribute date: #
    for period: 012.2010
    family : A
    attribute date:01.01.2011
    for period: 001.2011
    family : A
    attribute date: #
    for period: 002.2011
    if user run the query in 012.2010 i mean december 2010 then the above two record should be displayed & if he run the query in jan 2011 then only jan record should be shown because there a date in it & old record should not come. again if he run the query in feb 2011 then only the records for jan and feb should come old record before the date should not come.
    I mean once the value show up in the attribute date it should not pick old values but only pick new values.
    Thanks to all!

    Hi Mario,
                  When I format date as DSTR(@date_from & : &@date_to, 'dd.mm.yyyy') it shows blank values in the output for date field. rest of the values are displayed.
                  Mario can you tell anything about second part of my question. I am getting 'Result' at output.

Maybe you are looking for

  • Passing where clause of cursor

    my requirement is that i want to declare a cursor but the problem is that where clause of sql statement of cursor is dynamically generated according to user clicks........ e. g. number of conditions in where clause may change..... so..... how can i d

  • Ques;How  do you secure imail when used being used in iweb. People can mess

    How do you secure imail when used being used in iweb? People can mess w/my settings in iweb imail window.

  • OSB and JCA and AQ adapter

    Hi, Database 10.2 OSB 10.1.3.1 I would like to automaticlly publish changes from databasae AQ to service in OSB. Is it possible to do it by creating JCA AQ adapter (deploy it t OSB as business/proxy process) that could listen/dequeue database AQ and

  • What is the reason for nokia viberation..?!

    Hi, guys.. My phone, Asha 303.. Iam asking about all nokia mobile, is there any known reason for why all nokia phones disable vibertion option automatically when charging the phone??? * it comes in my mind that there is danger for electric rays or ne

  • Show Array in Debug

    it is not possible to see which values are in an array. on normal variables i can follow what happend while debuging the script. it yould be great to show whats going on with my array. display like an excel, or in first step like (22.5; 21; 99; ...)